diff --git a/source/UI7.cpp b/source/UI7.cpp index 5d7f351..2a0c6ea 100644 --- a/source/UI7.cpp +++ b/source/UI7.cpp @@ -838,9 +838,9 @@ bool BeginMenu(const std::string &title, R7Vec2 size, UI7MenuFlags flags) { float cursor_mod = (ui7_ctx->cm->mdp.y - np.y); if (ui7_ctx->cm->scrolling_mod <= 4.f && ui7_ctx->cm->scrolling_mod >= -4 && cursor_mod != 0.0f) { - if (cursor_mod > 0) { + if (cursor_mod > 2) { ui7_ctx->cm->scrolling_mod = cursor_mod; - } else { + } else if (cursor_mod < -2) { ui7_ctx->cm->scrolling_mod = cursor_mod; } } diff --git a/source/renderd7.cpp b/source/renderd7.cpp index 4b501c4..0f4445a 100644 --- a/source/renderd7.cpp +++ b/source/renderd7.cpp @@ -851,7 +851,7 @@ void RenderD7::RSettings::Logic() { stateftold = rd7i_ftraced; if (m_state == RSETTINGS) { - if (d7_hDown & KEY_B) { + if (d7_hUp & KEY_B) { std::fstream cfg_wrt(rd7i_config_path + "/config.rc7", std::ios::out); rd7i_config["metrik-settings"]["enableoverlay"] = rd7i_metrikd; rd7i_config["metrik-settings"]["Screen"] = rd7i_mt_screen;