mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Fixed scrollbar jitter when clicking
This commit is contained in:
parent
4ac7f5acf9
commit
5815aaa035
@ -343,7 +343,7 @@ void ScrollBar::_notification(int p_what) {
|
||||
double dist = sqrt(target * target);
|
||||
double vel = ((target / dist) * 500) * get_fixed_process_delta_time();
|
||||
|
||||
if (vel >= dist) {
|
||||
if (Math::abs(vel) >= dist) {
|
||||
set_value(target_scroll);
|
||||
} else {
|
||||
set_value(get_value() + vel);
|
||||
|
Loading…
Reference in New Issue
Block a user