Skip to content

Commit

Permalink
Merge pull request #6484 from Mikolaytis/osx_middleClick
Browse files Browse the repository at this point in the history
[OSX] Fix middle click
  • Loading branch information
Dan Walmsley authored and grokys committed Sep 29, 2021
1 parent 4627a84 commit 7e1c01c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions native/Avalonia.Native/src/OSX/window.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,7 @@ - (void)otherMouseDown:(NSEvent *)event

switch(event.buttonNumber)
{
case 2:
case 3:
_isMiddlePressed = true;
[self mouseEvent:event withType:MiddleButtonDown];
Expand Down Expand Up @@ -1698,6 +1699,7 @@ - (void)otherMouseUp:(NSEvent *)event
{
switch(event.buttonNumber)
{
case 2:
case 3:
_isMiddlePressed = false;
[self mouseEvent:event withType:MiddleButtonUp];
Expand Down

0 comments on commit 7e1c01c

Please sign in to comment.