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 5376573 commit b21b07cCopy full SHA for b21b07c
src/macos/mouse.c
@@ -149,16 +149,16 @@ void doubleClick(MMMouseButton button) {
149
CGEventRef event = CGEventCreateMouseEvent(src, mouseTypeDown, currentPos,
150
button);
151
152
- /* Set event to double click. */
153
- CGEventSetIntegerValueField(event, kCGMouseEventClickState, 2);
154
-
155
// First down
156
CGEventPost(kCGHIDEventTap, event);
157
158
// First up
159
CGEventSetType(event, mouseTypeUp);
160
161
+ /* Set event to double click. */
+ CGEventSetIntegerValueField(event, kCGMouseEventClickState, 2);
+
162
// Second down
163
CGEventSetType(event, mouseTypeDown);
164
0 commit comments