Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update Knob.cpp
  • Loading branch information
LostRobotMusic authored Sep 1, 2018
commit fc4f0ccc07992373f86867c19c2b9092c6b58ace
3 changes: 2 additions & 1 deletion src/gui/widgets/Knob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,8 @@ void Knob::paintEvent( QPaintEvent * _me )
void Knob::wheelEvent( QWheelEvent * _we )
{
_we->accept();
const int inc = ( _we->delta() > 0 ) ? 1 : -1;
const float stepMult = model()->range() / 2000 / model()->step<float>();
const int inc = ( ( _we->delta() > 0 ) ? 1 : -1 ) * ( ( stepMult < 1 ) ? 1 : stepMult );
model()->incValue( inc );


Expand Down