Skip to content
Snippets Groups Projects
Commit cf03e5ea authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Steve Lhomme
Browse files

qml: consider horizontal wheel events in `WheelToVLCConverter` of `VolumeWidget.qml`

parent 656953f5
No related branches found
No related tags found
1 merge request!6669qml: fix horizontal wheel events are not considered in `VolumeWidget.qml`
Pipeline #556822 passed with stage
in 13 minutes and 54 seconds
......@@ -322,12 +322,17 @@ T.Pane {
WheelToVLCConverter {
id: wheelToVLC
onWheelUpDown: (steps, modifiers) => {
function handle(steps: int) {
if (steps > 0)
Player.setVolumeUp(steps)
else
Player.setVolumeDown(-steps)
}
Component.onCompleted: {
wheelUpDown.connect(wheelToVLC.handle)
wheelLeftRight.connect(wheelToVLC.handle)
}
}
}
}
......
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