fix(macos): Touch input broken (#3240)
This commit is contained in:
@@ -362,6 +362,9 @@ const KeyCodeMap kKeyCodesMap[] = {
|
|||||||
CGEventSetDoubleValueField(event, kCGMouseEventDeltaY, deltaY);
|
CGEventSetDoubleValueField(event, kCGMouseEventDeltaY, deltaY);
|
||||||
|
|
||||||
CGEventPost(kCGHIDEventTap, event);
|
CGEventPost(kCGHIDEventTap, event);
|
||||||
|
// For why this is here, see:
|
||||||
|
// https://stackoverflow.com/questions/15194409/simulated-mouseevent-not-working-properly-osx
|
||||||
|
CGWarpMouseCursorPosition(location);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline CGEventType
|
inline CGEventType
|
||||||
|
|||||||
Reference in New Issue
Block a user