Skip to content

Conversation

@NickGerleman
Copy link
Contributor

@NickGerleman NickGerleman commented Aug 14, 2020

  • Restore Previous Behavior Allowing onMouseEnter and onMouseLeave on Touchables

Fixes #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

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
Copy link
Contributor Author

Some mechanical changes needed when backporting. Validated everything still works correctly in RNTester for 0.62.

@NickGerleman
Copy link
Contributor Author

Bad MSFTBot...

@NickGerleman
Copy link
Contributor Author

Git checkout slowness is causing test timeouts, but ran the extra checks tests locally and all is good. Merging this in.

@NickGerleman NickGerleman merged commit 6ccb77c into microsoft:0.62-stable Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants