Skip to content

Commit

Permalink
Disable the right mouse button on "Clickables"
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Nov 5, 2024
1 parent 19f4b22 commit c250838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/UI/View.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ bool Clickable::Touch(const TouchInput &input) {
}

// Ignore buttons other than the left one.
if ((input.flags & TOUCH_MOUSE) && input.id != 0) {
if ((input.flags & TOUCH_MOUSE) && (input.buttons & 1) == 0) {
return contains;
}

Expand Down

0 comments on commit c250838

Please sign in to comment.