xfangfang / borealis

Hardware accelerated, Nintendo Switch inspired UI library for PC, Android, iOS, PSV, PS4 and Nintendo Switch
Apache License 2.0
31 stars 21 forks source link

PanGestureRecognizer jittering fix #85

Closed XITRIX closed 2 months ago

XITRIX commented 2 months ago

Because pan recognizer needs some threshold to consider itself as "Recognised", after it change the status to "START" view scrolled by this gesture will jump on this threshold value, because startPoint was set when gesture was in "UNSURE" state and delta will not be zero, so I reset starting point and delta when state changes to "START" to avoid this "jumping" effect

xfangfang commented 2 months ago

👍I never noticed this before

XITRIX commented 2 months ago

On Switch it's really hard to notice, but on iPhone with 120HZ screen it's quite noticeable