Merge pull request #11546 from Paulb23/scrollbar_jitter
Fixed scrollbar Jitter when clicking [ci skip]
This commit is contained in:
commit
7bb9a26de3
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue