You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ScrollView inertia and wheel motion tick on a 17 ms thread-pool timer #24730
ScrollView (InteractionTracker) touch inertia and mouse-wheel motion are advanced by a 17 ms System.Threading.Timer on the thread pool, which also writes the tracker position and state from that thread. The content therefore moves at most ~59 times per second and beats against the display: on 120 Hz displays about half of the presented frames repeat the previous position (measured: ScrollView fling ~55–68 new frames/s on Win32 119 Hz, Galaxy Z Fold7 120 Hz and iPhone 13 Pro 120 Hz). The Translation shown in a frame also lags the tracker by one dispatcher hop, sub-detent wheel deltas (touchpads, MouseWheelDelta < 120) are truncated to zero, and a finger pressed on a coasting ScrollView does not stop it.
Expected behavior 🎯
ScrollView motion advances once per rendered frame on the UI thread, at the display refresh rate, and a pressed finger stops inertia (WinUI InteractionTracker behavior).
How to reproduce it (as minimally and precisely as possible) 🔬
Fling or wheel-scroll any ScrollView on a 120 Hz display and compare with a ScrollViewer; or run the Scrolling/ScrollSmoothnessTester sample's ScrollView tabs with the frame probe (see #24711).
Activity
test(scrollview): Harden ScrollView runtime tests