Bug 490189 - Unable to zoom accurately on a hidpi display. Zoom factors are too large.
Summary: Unable to zoom accurately on a hidpi display. Zoom factors are too large.
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 24.05.2
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-12 17:07 UTC by mba380
Modified: 2024-11-02 07:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mba380 2024-07-12 17:07:57 UTC
SUMMARY
Unable to zoom accurately on a hidpi display. Zoom factors are too large.

STEPS TO REPRODUCE
1. Open any PDF document
2. Zoom to any scale

OBSERVED RESULT
Zoom factor of any size (even the smallest at 12%) is too large for my display. It does not fit properly like it should on other pdf editors. Using control + scroll wheel makes no different than if I manually select the zoom factor (because both do the same thing). Only "fit page" is able to show the full document on screen, and "fit width" is too large as it takes up the whole screen space.
See the video as I show the expected result using gnome's document viewer (flatpak).
https://youtu.be/U9H_XMsxbGE


EXPECTED RESULT
It should zoom in slowly instead of immediately starting off with a large zoom resolution. See the video below.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Plasma Arch Linux
Kernel Version: 6.9.8-arch1-1 (64-bit)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Laptop: Legion 7 16ACHg6
Display Resolution: 2560x1600 165hz
Server: X11
Software package: Flatpak
Comment 1 mba380 2024-08-02 18:24:27 UTC
I'd like to update, I tried the windows version of okular and its the exact same issue. However, in Wayland on kde it works just fine and as expected.
Comment 2 mba380 2024-11-02 07:26:51 UTC
I discovered by accident that if I opened a PDF document in okular while it was not maximized to my screen (opened the PDF normally and then pressed the middle button that is to the left of the close button to turn the window into a floating window), okular works as normal and I can zoom in / zoom out normally.
Basically what I have to do is launch the PDF, if I launch it and it is fully maximized I would have to reduce the okular window size to turn it into a floating window and then restart okular. Then it would work as expected.

However, I have changed my windows zoom scale to 125% (I was at 150% at the time of bug report) and i have a new monitor (I was on my laptop monitor before and didn't have two monitors). Everything else remains the same, expect I have the latest versions of every software (this update is after I just updated the flatpak version of okular).

I believe this is new progress. I'm not sure if it was possible to have proper zooming out and zooming in before in previous versions of okular (fully maximized window or not). I really hope it is close to being resolved now as okular is one of the best PDF apps I have used so far.