add option for vertical mouse wheel navigation in timeline
In Kdenlive 19.x, the mouse scroll wheel has the following functions in the timeline:
- Scroll Wheel = scroll horizontally
- Shift + Scroll Wheel = scroll vertically
- Ctrl + Scroll Wheel = zoom
I would like to request the option to use conventional scroll wheel navigation for the timeline instead:
- Scroll Wheel = scroll vertically
- Shift + Scroll Wheel = scroll horizontally
- Ctrl + Scroll Wheel = zoom
This is how most software works, including GIMP, Inkscape, MuseScore, Firefox, Google Chrome, and Libreoffice, just to name a few. When every other program uses this convention, switching to Kdenlive really messes with my muscle memory. I realize making this the default might frustrate existing Kdenlive users who are used to the current workflow, but I would love to see it as an option at least.
Workaround
Until such an option is available, you can make a simple change to the source code if you want to swap the mouse wheel horizontal & vertical scrolling behavior. This can be done by exchanging lines 93-95 with 97-99 in src/timeline2/view/qml/timeline.qml, at least as of 8/12/19 git. Line numbers might change in the future:
lines 93-95:
// Vertical scroll
var newScroll = Math.min(scrollView.flickableItem.contentY - wheel.angleDelta.y, trackHeaders.height - tracksArea.height + scrollView.__horizontalScrollBar.height + cornerstone.height)
scrollView.flickableItem.contentY = Math.max(newScroll, 0)
lines 97-99:
// Horizontal scroll
var newScroll = Math.min(scrollView.flickableItem.contentX - wheel.angleDelta.y, timeline.fullDuration * root.timeScale - (scrollView.width - scrollView.__verticalScrollBar.width))
scrollView.flickableItem.contentX = Math.max(newScroll, 0)