Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MacOS] Fix Pressable being unresponsive #3142

Merged
merged 6 commits into from
Oct 9, 2024

Conversation

latekvo
Copy link
Contributor

@latekvo latekvo commented Oct 7, 2024

Description

This PR fixes incorrect Pressable behaviour on MacOS, which was caused by the following sub-issues:

  • Pointer tracker on MacOS kept returning incorrect relative coordinates.
    This was caused by converting the absolute coordinates from the local coordinate space to the absolute coordinate space instead of the other way around.

  • There was no workflow set on the Gesture.Native() to allow for activation of Pressable

Test plan

  • Open any Pressable example on MacOS
  • See how they all should work now.

@latekvo

This comment was marked as resolved.

@latekvo latekvo marked this pull request as draft October 7, 2024 16:59
@latekvo latekvo changed the title [MacOS] Fix pointer tracker returning incorrect relative coordinates [MacOS] Fix Pressable being unresponsive Oct 8, 2024
@latekvo latekvo requested a review from m-bert October 8, 2024 12:01
@latekvo latekvo marked this pull request as ready for review October 8, 2024 12:01
src/components/Pressable/Pressable.tsx Outdated Show resolved Hide resolved
src/components/Pressable/Pressable.tsx Outdated Show resolved Hide resolved
@latekvo latekvo merged commit 3c3d87b into main Oct 9, 2024
4 checks passed
@latekvo latekvo deleted the @latekvo/fix-pointer-tracker-relative-coords-on-macos branch October 9, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants