Small tweak to the knob code, make the acceleration curve smoother and less "sudden"

This commit is contained in:
Vesa
2014-03-01 23:17:13 +02:00
parent 9b8d396d82
commit 5586141bf5

View File

@@ -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() )