forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dispatchEvent API to EventEmitter that accepts an EventPayload di…
…rectly (and use it for Pointer Events) (facebook#38301) Summary: Pull Request resolved: facebook#38301 Changelog: [Internal] - Add dispatchEvent API to EventEmitter that accepts an EventPayload directly This diff adds a deeper overload of dispatchEvent to EventEmitter which accepts a caller-provided EventPayload subclass, and modifies TouchEventEmitter's dispatchPointerEvent method to use it so that the typed PointerEvent is actually sent through the event pipeline. Reviewed By: NickGerleman Differential Revision: D47351851 fbshipit-source-id: a6fdabbfc9b8287c564252f5cc7296fa75044a1e
- Loading branch information
1 parent
c3f07d8
commit 6172988
Showing
3 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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