summaryrefslogtreecommitdiff
path: root/plugingui/knob.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/knob.cc')
-rw-r--r--plugingui/knob.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/knob.cc b/plugingui/knob.cc
index 27d4083..4e7db3b 100644
--- a/plugingui/knob.cc
+++ b/plugingui/knob.cc
@@ -124,6 +124,11 @@ void Knob::keyEvent(KeyEvent* keyEvent)
void Knob::buttonEvent(ButtonEvent* buttonEvent)
{
+ // Ignore everything except left clicks.
+ if (buttonEvent->button != MouseButton::left) {
+ return;
+ }
+
if(buttonEvent->direction == Direction::down)
{
state = down;