[RTL] Improve scroll bar responsiveness during updates.

This commit is contained in:
bruvzg
2023-08-14 11:36:05 +03:00
parent 0308422f46
commit 3709ca5404
2 changed files with 20 additions and 1 deletions

View File

@@ -428,6 +428,14 @@ void ScrollBar::_notification(int p_what) {
}
} break;
case NOTIFICATION_VISIBILITY_CHANGED: {
if (!is_visible()) {
incr_active = false;
decr_active = false;
drag.active = false;
}
} break;
case NOTIFICATION_MOUSE_EXIT: {
highlight = HIGHLIGHT_NONE;
queue_redraw();