[vlc-commits] [Git][videolan/vlc][master] qt: obey the predefined scroll direction in `FlickableScrollHandler`
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Jan 21 07:42:09 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
c12595f1 by Fatih Uzunoglu at 2025-01-21T07:27:07+00:00
qt: obey the predefined scroll direction in `FlickableScrollHandler`
This class is used for scrolling, it should obey the predefined
scroll direction.
Currently on platforms invertedness is provided (and when the
platform plugin supplies the information), this causes the
scrolling direction to be always non-inverted (which means that
natural scrolling is not used even if it is wanted).
- - - - -
1 changed file:
- modules/gui/qt/util/flickable_scroll_handler.cpp
Changes:
=====================================
modules/gui/qt/util/flickable_scroll_handler.cpp
=====================================
@@ -114,11 +114,6 @@ bool FlickableScrollHandler::eventFilter(QObject *watched, QEvent *event)
else
return false;
- if (wheel->inverted())
- {
- ev.delta = -ev.delta;
- }
-
const auto handler = [this, wheel, ev](Qt::Orientation orientation, bool fallback = false) {
const auto vertical = (orientation == Qt::Vertical);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c12595f1bc276031a6a2598da5bb3514dc556b3f
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c12595f1bc276031a6a2598da5bb3514dc556b3f
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