# HG changeset patch # User Chris Cannam # Date 1158167782 0 # Node ID 48d19f278b152b66db091046a66a9e6ecd4879a5 # Parent b9235b62fe3135441d1c9de03b6132ab77bb7558 * avoid slipping from default value on mid-click diff -r b9235b62fe31 -r 48d19f278b15 widgets/Fader.cpp --- 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;