fix(macos): Touch input broken (#3240)

This commit is contained in:
BayLee4
2024-09-29 17:59:20 +02:00
committed by GitHub
parent ec506bbb2f
commit 5bc32cdeb3

View File

@@ -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