Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
97cfb21b by Ojus Chugh at 2026-03-02T16:27:54+00:00
qt: fix middle mouse wheel rewind issue
- - - - -
1 changed file:
- modules/gui/qt/player/qml/SliderBar.qml
Changes:
=====================================
modules/gui/qt/player/qml/SliderBar.qml
=====================================
@@ -276,6 +276,40 @@ T.ProgressBar {
}
}
}
+
+ WheelHandler {
+ orientation: Qt.Vertical | Qt.Horizontal
+
+ acceptedDevices: PointerDevice.AllDevices
+
+ onWheel: (wheel) => {
+ wheelToVLC.qmlWheelEvent(wheel)
+ wheel.accepted = true
+ }
+ }
+
+ WheelToVLCConverter {
+ id: wheelToVLC
+
+ function handleVertical(steps: int) {
+ if (steps > 0)
+ Player.jumpFwd()
+ else
+ Player.jumpBwd()
+ }
+
+ function handleHorizontal(steps: int) {
+ if (steps > 0)
+ Player.jumpBwd()
+ else
+ Player.jumpFwd()
+ }
+
+ Component.onCompleted: {
+ wheelUpDown.connect(wheelToVLC, wheelToVLC.handleVertical)
+ wheelLeftRight.connect(wheelToVLC, wheelToVLC.handleHorizontal)
+ }
+ }
}
background: Item {
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/97cfb21b08db47337c0c26e6c5d7126da8d2a6ba
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/97cfb21b08db47337c0c26e6c5d7126da8d2a6ba
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits