changeset 141:48d19f278b15

* avoid slipping from default value on mid-click
author Chris Cannam
date Wed, 13 Sep 2006 17:16:22 +0000
parents b9235b62fe31
children 40a47de69559
files widgets/Fader.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/widgets/Fader.cpp	Mon Sep 11 16:40:18 2006 +0000
+++ b/widgets/Fader.cpp	Wed Sep 13 17:16:22 2006 +0000
@@ -98,6 +98,10 @@
 void
 Fader::mouseMoveEvent(QMouseEvent *ev)
 {
+    if (ev->button() == Qt::MidButton) {
+        return;
+    }
+
     int x = ev->x() - 6;
     const int max_x = 116 - 12;