comparison 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
comparison
equal deleted inserted replaced
140:b9235b62fe31 141:48d19f278b15
96 } 96 }
97 97
98 void 98 void
99 Fader::mouseMoveEvent(QMouseEvent *ev) 99 Fader::mouseMoveEvent(QMouseEvent *ev)
100 { 100 {
101 if (ev->button() == Qt::MidButton) {
102 return;
103 }
104
101 int x = ev->x() - 6; 105 int x = ev->x() - 6;
102 const int max_x = 116 - 12; 106 const int max_x = 116 - 12;
103 107
104 int value = x; 108 int value = x;
105 109