TimeLineAnnotator / desktop

A GUI for graphical analysis and annotation of video and audio files.
https://tilia-app.com
Creative Commons Attribution Share Alike 4.0 International
12 stars 3 forks source link

Allow sidewise scrolling/panning #202

Open johentsch opened 2 weeks ago

johentsch commented 2 weeks ago

Desired behaviour

Having zoomed into a timeline one needs a convenient way to pan right and left to navigate the piece. I would expect to scroll sidewise with a touchpad gesture, or using a common combination such as Alt + [scroll] or Shift + [scroll].

Current behaviour

Vertical scroll results in zooming, just like horizontal scroll. Alt + [scroll] merely inverts the direction of zoom.

FelipeDefensor commented 2 weeks ago

Absolutely. @azfoo has pointed this out and implemented the scroll shortcuts. I'm planning to release this change together with an overhaul of the zooming tools, that will allow for things like fitting to screen and setting zoom percentages.

I believe the shortcuts can currently be enabled by uncommenting a single line of code. I can confirm that if you would like.

azfoo commented 2 weeks ago

If you comment out the original wheelEvent in tilia/ui/timelines/collection/view.py and replace it with wheelEvent_with_mod, you'll get the desired behaviour! (Works with sideways wheel clicks too if your mouse does that) Again, as mentioned, that will likely come in another update