From 5586141bf54cb65ca9cd491ad1d8e42c22f7f1ed Mon Sep 17 00:00:00 2001 From: Vesa Date: Sat, 1 Mar 2014 23:17:13 +0200 Subject: [PATCH] Small tweak to the knob code, make the acceleration curve smoother and less "sudden" --- src/gui/widgets/knob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widgets/knob.cpp b/src/gui/widgets/knob.cpp index ec83a21ba..074f32813 100644 --- a/src/gui/widgets/knob.cpp +++ b/src/gui/widgets/knob.cpp @@ -392,7 +392,7 @@ float knob::getValue( const QPoint & _p ) float value; // arcane mathemagicks for calculating knob movement - value = ( ( _p.y() + _p.y() * qMin( qAbs( _p.y() / 2 ), 6 ) ) ) / 10.0f; + value = ( ( _p.y() + _p.y() * qMin( qAbs( _p.y() / 2.5f ), 6.0f ) ) ) / 12.0f; // if shift pressed we want slower movement if( engine::mainWindow()->isShiftPressed() )