Small Fix

This commit is contained in:
2024-06-23 23:28:01 +02:00
parent f7e4d9848a
commit d9af637050
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}
}