summaryrefslogtreecommitdiff
path: root/plugingui/slider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/slider.cc')
-rw-r--r--plugingui/slider.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/slider.cc b/plugingui/slider.cc
index 71dd0c5..64a4b3f 100644
--- a/plugingui/slider.cc
+++ b/plugingui/slider.cc
@@ -99,6 +99,11 @@ void Slider::repaintEvent(RepaintEvent* repaintEvent)
void Slider::buttonEvent(ButtonEvent* buttonEvent)
{
+ // Ignore everything except left clicks.
+ if (buttonEvent->button != MouseButton::left) {
+ return;
+ }
+
if(buttonEvent->direction == Direction::down)
{
state = State::down;