diff widgets/Fader.cpp @ 141:48d19f278b15

* avoid slipping from default value on mid-click
author Chris Cannam
date Wed, 13 Sep 2006 17:16:22 +0000
parents 5d3a483856ff
children d1e5cd4574a0
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;