Skip to content

Commit

Permalink
app: [macOS] handle mouse dragging with buttons other than the left one
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Honnef <[email protected]>
  • Loading branch information
dominikh authored and whereswaldon committed Aug 31, 2023
1 parent 14bab8e commit 89d20c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/os_macos.m
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ - (void)mouseMoved:(NSEvent *)event {
- (void)mouseDragged:(NSEvent *)event {
handleMouse(self, event, MOUSE_MOVE, 0, 0);
}
- (void)rightMouseDragged:(NSEvent *)event {
handleMouse(self, event, MOUSE_MOVE, 0, 0);
}
- (void)otherMouseDragged:(NSEvent *)event {
handleMouse(self, event, MOUSE_MOVE, 0, 0);
}
- (void)scrollWheel:(NSEvent *)event {
CGFloat dx = -event.scrollingDeltaX;
CGFloat dy = -event.scrollingDeltaY;
Expand Down

0 comments on commit 89d20c7

Please sign in to comment.