Skip to content
Snippets Groups Projects
Commit 0e7855c1 authored by SeeLook's avatar SeeLook
Browse files

Fixed score scrolling and zooming with wheel

parent 387cc441
No related branches found
No related tags found
No related merge requests found
......@@ -50,18 +50,19 @@ Score {
z: -1
onWheel: {
if (wheel.modifiers & Qt.ControlModifier) {
if (wheel.angleDelta.y > 0) {
if (!zoomTimer.running) {
zoomInAct.trigger()
zoomTimer.running = true
}
} else if (wheel.angleDelta.y < 0) {
if (!zoomTimer.running) {
zoomOutAct.trigger()
zoomTimer.running = true
}
}
}
if (wheel.angleDelta.y > 0) {
if (!zoomTimer.running) {
zoomInAct.trigger()
zoomTimer.running = true
}
} else if (wheel.angleDelta.y < 0) {
if (!zoomTimer.running) {
zoomOutAct.trigger()
zoomTimer.running = true
}
}
} else
wheel.accepted = false
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment