Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix scrolling with mouse wheel

parent 11230443
......@@ -59,11 +59,6 @@ Column{
width: clipRow.width
MouseArea {
acceptedButtons: Qt.NoButton
onWheel: zoomByWheel(wheel)
}
DelegateModel {
id: trackModel
Clip {
......
......@@ -26,7 +26,7 @@ Rectangle {
//TODO
timeline.setScaleFactor(timeline.scaleFactor + 0.2 * wheel.angleDelta.y / 120);
} else {
scrollView.flickableItem.contentX += wheel.angleDelta.y
scrollView.flickableItem.contentX = Math.max(0, scrollView.flickableItem.contentX + wheel.angleDelta.y)
}
//Logic.scrollIfNeeded()
}
......@@ -433,6 +433,14 @@ Rectangle {
}
}
}
MouseArea {
width: root.width - headerWidth
height: root.height - ruler.height
y: ruler.height
x: headerWidth
acceptedButtons: Qt.NoButton
onWheel: zoomByWheel(wheel)
}
Connections {
target: timeline
onPositionChanged: if (!stopScrolling) Logic.scrollIfNeeded()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment