[vlc-commits] [Git][videolan/vlc][master] qt: care about wheel event invertedness in WheelToVLCConverter
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Jan 9 15:25:28 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
1ba2a2db by Fatih Uzunoglu at 2025-01-09T15:12:05+00:00
qt: care about wheel event invertedness in WheelToVLCConverter
Without this scrolling does not yield towards the favored direction.
- - - - -
1 changed file:
- modules/gui/qt/util/vlchotkeyconverter.cpp
Changes:
=====================================
modules/gui/qt/util/vlchotkeyconverter.cpp
=====================================
@@ -258,6 +258,14 @@ void WheelToVLCConverter::wheelEvent( const QWheelEvent* e )
}
QPoint p = e->angleDelta();
+ if (e->inverted())
+ {
+ const Qt::Orientations preliminaryOrientation = getWheelOrientation(p.x(), p.y());
+ if (preliminaryOrientation == Qt::Vertical)
+ p.setY(-p.y());
+ else if (preliminaryOrientation == Qt::Horizontal)
+ p.setX(-p.x());
+ }
p += m_scrollAmount;
if (p.isNull())
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1ba2a2db89c832be6b553f155f4cff445b703e2c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1ba2a2db89c832be6b553f155f4cff445b703e2c
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list