fix: Match mobile-web :hover behavior on touch#9793
Merged
Conversation
9157a9d to
bf6fed5
Compare
28af0ad to
3cc7b55
Compare
…eb-parity # Conflicts: # packages/react-native-reanimated/apple/reanimated/apple/pseudoSelectors/REATouchHoverCoordinator.mm
82bac14 to
a089461
Compare
fdc9959 to
1031a57
Compare
tjzel
approved these changes
Jul 8, 2026
pull Bot
pushed a commit
to esinanturan/react-native-reanimated
that referenced
this pull request
Jul 8, 2026
…ware-mansion#9877) Make touch `:active` transient 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 software-mansion#9793 (touch `:hover` web-parity). ## Example recording ### `:active` dismissed once a press moves past the tap slop Press and hold the box, then drag the finger off it. Works the same on android. | Before | After | |-|-| | `:active` stays held until the finger lifts, even as the press turns into a scroll | `:active` is dismissed as soon as the press moves past the tap slop, matching mobile web | |-|-| | <video src="https://github.com/user-attachments/assets/0c09bb02-b5f8-4a9f-8e34-a4419f477255" /> | <video src="https://github.com/user-attachments/assets/719a8e1d-d048-4d59-aa13-74b3a2f9817d" /> |
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.
Description
Makes touch
:hovermatch how mobile Chromium web browsers work:This PR replaces the old slop-based dismissal, which dropped
:hoveron any movement even when the finger released back over the view.Example recordings
Before (iOS)
ScreenRecording_07-07-2026.14-01-31_1.1.mp4
After (iOS)
ScreenRecording_07-07-2026.13-53-29_1.1.mp4
After (Android)
Screen_Recording_20260707_144105_FabricExample.1.mp4