Browse Source

Fix middle-mouse-drag speed of ScrollWidget with non-1 zoom level.

tags/v2.0.0
Andrew Belt 4 years ago
parent
commit
28be21cfef
2 changed files with 3 additions and 1 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +2
    -1
      src/ui/ScrollWidget.cpp

+ 1
- 0
CHANGELOG.md View File

@@ -34,6 +34,7 @@ In this document, Mod is Ctrl on Windows/Linux and Cmd on Mac.
- Copy cable color when cloning cables with Ctrl+click.
- Fix key commands on AZERTY, Dvorak, and all other keyboard layouts.
- Add Mouse device to Computer keyboard/mouse MIDI driver.
- Make scrollbar mouse interaction similar to modern OS behavior.

- Core
- Add Audio-2 module with stereo input/output, a level knob, and VU meters.


+ 2
- 1
src/ui/ScrollWidget.cpp View File

@@ -109,7 +109,8 @@ void ScrollWidget::onDragMove(const event::DragMove& e) {
if (!(horizontalScrollBar->isVisible() || verticalScrollBar->isVisible()))
return;

offset = offset.minus(e.mouseDelta);
math::Vec offsetDelta = e.mouseDelta.div(getAbsoluteZoom());
offset = offset.minus(offsetDelta);
}




Loading…
Cancel
Save