Skip to content

Conversation

@NickGerleman
Copy link
Contributor

@NickGerleman NickGerleman commented Aug 14, 2020

  • Restore Previous Behavior Allowing onMouseEnter and onMouseLeave on Touchables

See issue for some discussion. Pointer handling in RNW is something of a mess right now, but we need to preserve existing compatibility after conflicting Pressability changes were introuced. Fixup MouseEvent typings, add raw MouseEvent handlers to Pressability, and hook those to Touchables to allow previous behavior. We will need to reconcile this with other platforms eventually.

I don't hook this up to Pressable. This leaves it impossible to add hover styling to Pressable, but I would rather we wait until we have a more generalized solution for MouseEvents before forking more component APIs we will need to worry about breaking later.

Moved a mouse sample that existed in Playground to RNTester to try to catch mouse regressions in the future. Discovered our forked CoreEventTypes wasn't using the ".windows.js" platform suffix and fixed that.

  • Change files

  • Fix overrides and feedback

Microsoft Reviewers: Open in CodeFlow

…ouchables (microsoft#5736)

* Restore Previous Behavior Allowing onMouseEnter and onMouseLeave on Touchables

Fixes microsoft#5715

See issue for some discussion. Pointer handling in RNW is something of a mess right now, but we need to preserve existing compatibility after conflicting Pressability changes were introuced. Fixup MouseEvent typings, add raw MouseEvent handlers to Pressability, and hook those to Touchables to allow previous behavior. We will need to reconcile this with other platforms eventually.

I don't hook this up to Pressable. This leaves it impossible to add hover styling to Pressable, but I would rather we wait until we have a more generalized solution for MouseEvents before forking more component APIs we will need to worry about breaking later.

Moved a mouse sample that existed in Playground to RNTester to try to catch mouse regressions in the future. Discovered our forked CoreEventTypes wasn't using the ".windows.js" platform suffix and fixed that.

* Change files

* Fix overrides and feedback
@NickGerleman NickGerleman requested a review from a team as a code owner August 14, 2020 20:57
@NickGerleman NickGerleman changed the title Restore Previous Behavior Allowing onMouseEnter and onMouseLeave on Touchables (#5736) [0.63] Restore Previous Behavior Allowing onMouseEnter and onMouseLeave on Touchables (#5736) Aug 14, 2020
@NickGerleman
Copy link
Contributor Author

Clean merge apart from removing a change to an E2ETest file that didn't exist yet.

@NickGerleman NickGerleman merged commit c95408e into microsoft:0.63-stable Aug 14, 2020
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.

2 participants