We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec506bb commit 5bc32cdCopy full SHA for 5bc32cd
src/platform/macos/input.cpp
@@ -362,6 +362,9 @@ const KeyCodeMap kKeyCodesMap[] = {
362
CGEventSetDoubleValueField(event, kCGMouseEventDeltaY, deltaY);
363
364
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);
368
}
369
370
inline CGEventType
0 commit comments