-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use sendInputEvent for mouse, support hover
Switch from mouse event logic in mouse.mm to Electron's own sendInputEvent API. This appears to be more reliable and makes it easier to send additional events that simulate hover events. We now send mouseEnter, mouseMove events after completing a move. If two successive mouse moves are in two different windows, we now send a mouseLeave event to the previous window. Also support double-click events by overloading the click argument to support integer values. To simulate a double-click, use {click: 2, ...}
- Loading branch information
Showing
2 changed files
with
92 additions
and
56 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