Skip to content

Commit

Permalink
fix(macos): Touch input broken
Browse files Browse the repository at this point in the history
  • Loading branch information
BayLee4 committed Sep 27, 2024
1 parent 68eb8d2 commit 5adb7ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platform/macos/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5adb7ba

Please sign in to comment.