mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 13:51:29 +00:00
Merge pull request #10887 from Paulb23/fix_scrolling_up_jitter
Fixed jitter when scrolling up
This commit is contained in:
commit
0fc342c296
@ -430,7 +430,7 @@ void TextEdit::_notification(int p_what) {
|
||||
double dist = sqrt(target_y * target_y);
|
||||
double vel = ((target_y / dist) * v_scroll_speed) * get_fixed_process_delta_time();
|
||||
|
||||
if (vel >= dist) {
|
||||
if (Math::abs(vel) >= dist) {
|
||||
v_scroll->set_value(target_v_scroll);
|
||||
scrolling = false;
|
||||
set_fixed_process(false);
|
||||
|
Loading…
Reference in New Issue
Block a user