Browse Source

Implement Knob::speed.

tags/v2.0.0
Andrew Belt 2 years ago
parent
commit
a8384d6543
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/app/Knob.cpp

+ 2
- 0
src/app/Knob.cpp View File

@@ -165,6 +165,7 @@ void Knob::onDragMove(const DragMoveEvent& e) {
if (linearMode) {
float delta = (horizontal ? e.mouseDelta.x : -e.mouseDelta.y);
delta *= settings::knobLinearSensitivity;
delta *= speed;
delta *= getModSpeed();
delta *= rangeRatio;

@@ -270,6 +271,7 @@ void Knob::onHoverScroll(const HoverScrollEvent& e) {
// Calculate delta value
float delta = e.scrollDelta.y;
delta *= settings::knobScrollSensitivity;
delta *= speed;
delta *= getModSpeed();
delta *= rangeRatio;



Loading…
Cancel
Save