Skip to content

Commit

Permalink
fix(macos): Touch input broken (#3240)
Browse files Browse the repository at this point in the history
  • Loading branch information
BayLee4 authored Sep 29, 2024
1 parent ec506bb commit 5bc32cd
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 5bc32cd

Please sign in to comment.