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
danwalmsley committed Sep 6, 2021
2 parents 0f23085 + 63dd7b5 commit 864e071
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 864e071

Please sign in to comment.