fix(macos): Touch input broken (#3240)
This commit is contained in:
parent
ec506bbb2f
commit
5bc32cdeb3
1 changed files with 3 additions and 0 deletions
|
|
@ -362,6 +362,9 @@ const KeyCodeMap kKeyCodesMap[] = {
|
|||
CGEventSetDoubleValueField(event, kCGMouseEventDeltaY, deltaY);
|
||||
|
||||
CGEventPost(kCGHIDEventTap, event);
|
||||
// For why this is here, see:
|
||||
// https://stackoverflow.com/questions/15194409/simulated-mouseevent-not-working-properly-osx
|
||||
CGWarpMouseCursorPosition(location);
|
||||
}
|
||||
|
||||
inline CGEventType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue