Skip to content

Commit 5bc32cd

Browse files
authored
fix(macos): Touch input broken (#3240)
1 parent ec506bb commit 5bc32cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/platform/macos/input.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ const KeyCodeMap kKeyCodesMap[] = {
362362
CGEventSetDoubleValueField(event, kCGMouseEventDeltaY, deltaY);
363363

364364
CGEventPost(kCGHIDEventTap, event);
365+
// For why this is here, see:
366+
// https://stackoverflow.com/questions/15194409/simulated-mouseevent-not-working-properly-osx
367+
CGWarpMouseCursorPosition(location);
365368
}
366369

367370
inline CGEventType

0 commit comments

Comments
 (0)