fix: Dismiss touch :active once a press moves past the tap slop#9877
Merged
Conversation
a942db1 to
efea196
Compare
fdc9959 to
1031a57
Compare
efea196 to
1d101f7
Compare
tjzel
approved these changes
Jul 8, 2026
1d101f7 to
558e6c8
Compare
Match mobile web, where :active is transient: a press that turns into a scroll or drags off the element clears it (unlike the sticky :hover). iOS splits the shared gesture handler and drops :active on movement past the slop, measured in window space so a content-tracking scroll still counts; Android adds ACTION_MOVE handling using scaledTouchSlop. The single active-pointer token is held until the finger lifts.
558e6c8 to
23a0139
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make touch
:activetransient like mobile web: a press that turns into a scroll or drags past the tap slop clears:active, instead of holding it until the finger lifts.Stacked on #9793 (touch
:hoverweb-parity).Example recording
:activedismissed once a press moves past the tap slopPress and hold the box, then drag the finger off it. Works the same on android.
:activestays held until the finger lifts, even as the press turns into a scroll:activeis dismissed as soon as the press moves past the tap slop, matching mobile webScreenRecording_07-07-2026.14-02-52_1.1.mp4
ScreenRecording_07-07-2026.13-54-47_1.1.mp4