Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fatih Uzunoğlu
VLC
Commits
c978d50d
Commit
c978d50d
authored
3 months ago
by
Fatih Uzunoğlu
Committed by
Steve Lhomme
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
qt: use `QWheelEvent::DefaultDeltasPerStep` instead of hardcoded `120` in `FlickableScrollHandler`
parent
be336c08
No related branches found
No related tags found
No related merge requests found
Pipeline
#556482
passed with stage
in 14 minutes and 17 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/qt/util/flickable_scroll_handler.cpp
+2
-2
2 additions, 2 deletions
modules/gui/qt/util/flickable_scroll_handler.cpp
with
2 additions
and
2 deletions
modules/gui/qt/util/flickable_scroll_handler.cpp
+
2
−
2
View file @
c978d50d
...
...
@@ -101,14 +101,14 @@ bool FlickableScrollHandler::eventFilter(QObject *watched, QEvent *event)
using
Type
=
decltype
(
ev
)
::
Type
;
if
(
!
wheel
->
pixelDelta
().
isNull
()
&&
(
wheel
->
pixelDelta
().
manhattanLength
()
%
120
))
if
(
!
wheel
->
pixelDelta
().
isNull
()
&&
(
wheel
->
pixelDelta
().
manhattanLength
()
%
QWheelEvent
::
DefaultDeltasPerStep
))
{
ev
.
delta
=
wheel
->
pixelDelta
();
ev
.
type
=
Type
::
Pixel
;
}
else
if
(
!
m_handleOnlyPixelDelta
&&
!
wheel
->
angleDelta
().
isNull
())
{
ev
.
delta
=
wheel
->
angleDelta
()
/
8
/
15
;
ev
.
delta
=
wheel
->
angleDelta
()
/
QWheelEvent
::
DefaultDeltasPerStep
;
ev
.
type
=
Type
::
Degree
;
}
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment