falkTX / los

Libre Octave Studio
GNU General Public License v2.0
20 stars 5 forks source link

Feature request: Zoom horizontally with Ctrl + mouse wheel #4

Open ViktorNova opened 10 years ago

ViktorNova commented 10 years ago

This would be really nice!

Horizontal zoom (maybe with Alt or Shift, or when the mouse is positioned over the track names) and Ctrl + / Ctrl - keys would be a nice bonus too, but zooming the canvas with Ctrl + wheel is standard in almost every DAW and would save a ton of time navigating around

ViktorNova commented 8 years ago

For reference: MuSE implemented this on January 5, 2013 https://github.com/muse-sequencer/muse/commit/5fb1cdfe5bdd48406e58441b354fc87d3d3c582e#diff-29b5208099494f67b70a815a1c44979f

Feature/fix: Zoom at cursor! Zoom Ctl+PgUp/PgDown (defaults) and Ctl+MouseWheel now zoom about cursor. (Tim) Eliminated redundant call in ScrollScale::setMag(), by blocking signals. Consolidated all HorizontalZoomIn and HorizontalZoomOut functions into a single HorizontalZoom. Added eight more 'quick zoom' levels to class ScrollScale. Modified all HorizontalZoom functions to pass cursor offset, and use it in ScrollScale::setScale().