aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoger52017-06-06 19:39:32 -0700
committertoger52017-06-06 19:40:06 -0700
commit328d0e2b4e33265841c5a0e9bbd0157897b63891 (patch)
tree40622e70327bf1cedd4c89b089ba946bac9ade95
parent9e5efa4abd2a9cfdcf637cc393222948f8f6cc3f (diff)
downloadgodot-328d0e2b4e33265841c5a0e9bbd0157897b63891.tar.gz
godot-328d0e2b4e33265841c5a0e9bbd0157897b63891.tar.zst
godot-328d0e2b4e33265841c5a0e9bbd0157897b63891.zip
osx release right button event fixed
RIGHT_MOUSE_BUTTON was not removed from the button mask (instead it was added...) fixes #9079
-rw-r--r--platform/osx/os_osx.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm
index cb37f1809..54b180225 100644
--- a/platform/osx/os_osx.mm
+++ b/platform/osx/os_osx.mm
@@ -365,7 +365,7 @@ static int button_mask = 0;
- (void)rightMouseUp:(NSEvent *)event {
- button_mask |= BUTTON_MASK_RIGHT;
+ button_mask &= ~BUTTON_MASK_RIGHT;
Ref<InputEventMouseButton> mb;
mb.instance();