diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-01-02 13:24:25 +0100 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-01-02 13:24:25 +0100 |
commit | 2cf71ffbfda49bc3791490f4d035897bb35298f8 (patch) | |
tree | 1ed15f0d94f3e10f1b379d51f49f4528cc9df7c6 /plugingui/scrollbar.cc | |
parent | 7baaa737216080d7ddbeb7d92e53f6078dfd4d3a (diff) |
Ignore all clicks except left clicks in all the widgets.
Of course, we want to change this as soon as we actually want to
use right and middle clicks. But this is not the case atm.
Diffstat (limited to 'plugingui/scrollbar.cc')
-rw-r--r-- | plugingui/scrollbar.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/scrollbar.cc b/plugingui/scrollbar.cc index da82105..3f53f03 100644 --- a/plugingui/scrollbar.cc +++ b/plugingui/scrollbar.cc @@ -175,6 +175,11 @@ void ScrollBar::mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) void ScrollBar::buttonEvent(ButtonEvent* buttonEvent) { + // Ignore everything except left clicks. + if (buttonEvent->button != MouseButton::left) { + return; + } + if((buttonEvent->y < (int)width()) && buttonEvent->y > 0) { if(buttonEvent->direction == Direction::down) |