Bug 494881 - Mouse scroll wheel in single page mode doesn't switch page anymore
Summary: Mouse scroll wheel in single page mode doesn't switch page anymore
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 24.08.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-16 18:38 UTC by gggeri91
Modified: 2024-10-24 22:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Lorem Ipsum (56.42 KB, application/pdf)
2024-10-16 18:38 UTC, gggeri91
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gggeri91 2024-10-16 18:38:41 UTC
Created attachment 174905 [details]
Lorem Ipsum

SUMMARY
Mouse scroll wheel in single page mode doesn't switch page anymore. It was working just fine until it broke recently.

STEPS TO REPRODUCE
1. Open a PDF file with Okular which has several pages. I attached a "Lorem Ipsum" just for reference.
2. Set View Mode to "Single Page"
3. Set Zoom (?) to "Fit Width"
4. Rotate the mouse wheel in order to switch to the next page. One click of the wheel should switch the page.

OBSERVED RESULT
The page is not switched when I rotate the mouse wheel. 

EXPECTED RESULT
The page is switched with 1 click of the wheel into the corresponding direction. 

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Kernel Version: 6.11.3-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 6700 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7D52
System Version: 1.0

ADDITIONAL INFORMATION
My mouse: Logitech MX Master 3
As I said, this feature was working fine before on my system. It broke after an update.

Page switching works with another cheap USB mouse. I am unable to investigate the issue further as I am not familiar with the internals of Okular nor Wayland nor Mouse drivers nor whatever else may be responsible.
Comment 1 gggeri91 2024-10-16 18:39:35 UTC
I forgot to mention that other applications work just fine. So far, it is only Okular where this issue has shown up, and only with Logitech MX Master 3.
Comment 2 gggeri91 2024-10-18 07:14:38 UTC
I think it is not an Okular bug. Today I discovered in "KolourPaint" that my scroll wheel doesn't adjust the zoom level correctly when using Logitech MX Master 3. With my other cheap USB mouse it works.
It is 100% related to the scroll wheel resolution of the mouse.
Comment 3 Albert Astals Cid 2024-10-21 22:22:39 UTC
This is an actual bug, we need to accumulate wheel deltas if they are small (which i guess your "high definition" mouse is sending)
Comment 4 Bug Janitor Service 2024-10-21 22:33:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/1064
Comment 5 Albert Astals Cid 2024-10-24 22:57:50 UTC
Git commit 267b955b96b5f65b7259e3150f3bc7a91831da39 by Albert Astals Cid.
Committed on 24/10/2024 at 22:57.
Pushed by aacid into branch 'master'.

Fix changing between pages on SinglePage mode with "high frenequency wheel" mouses
Related: bug 443404

M  +10   -4    part/pageview.cpp

https://invent.kde.org/graphics/okular/-/commit/267b955b96b5f65b7259e3150f3bc7a91831da39