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

This commit is contained in:
BayLee4 authored and GitHub committed 2024-09-29 15:59:20 +00:00
1 parent ec506bbb2f
commit 5bc32cdeb3
1 file changed
+3
+3
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