Browse Source

Reverse mouse direction of scaling in linear scale knob mode.

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

+ 1
- 1
src/app/Knob.cpp View File

@@ -153,7 +153,7 @@ void Knob::onDragMove(const event::DragMove& e) {
if (km == settings::KNOB_MODE_SCALED_LINEAR) {
float deltaY = (horizontal ? -e.mouseDelta.y : -e.mouseDelta.x);
const float pixelTau = 200.f;
internal->linearScale *= std::pow(2.f, deltaY / pixelTau);
internal->linearScale *= std::pow(2.f, -deltaY / pixelTau);
delta *= internal->linearScale;
}



Loading…
Cancel
Save