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
Commit 661f791
Browse filesBrowse the repository at this point in the historyBrowse files
chore(gestures): a pan's begin threshold can be read from each press (#9953)
chore(gestures): a pan's begin threshold can be read from each press
PanGestureRecognizer's `hysteresis` may be a function. When a press's
first touches land, the pan reads that press's threshold from its first
touch. So a recognizer can give a mouse or a pen its own threshold and
keep UIKit's 10 px for a finger. A number keeps today's behavior.
Lightbox's zoom pan is the first user: a mouse's or a pen's drag on a
zoomed photo pans from its first move, while a finger keeps the 10 px
that tells a tap from a pan. Without this, it sets the threshold from
its own pointerdown listener.
[chore] Internal: a pan gesture's begin threshold can be read from each press's first touch, so a mouse or a pen can begin a pan sooner than a finger. It is not exported from the package entry point, and nothing changes for existing callers.
0 commit comments