Bug 473679 - Pinch to zoom with touchpad
Summary: Pinch to zoom with touchpad
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 22.12.3
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-23 12:47 UTC by Richard
Modified: 2024-09-13 03:17 UTC (History)
10 users (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 Richard 2023-08-23 12:47:12 UTC
Zooming with touchpad seems to be not available at all, also tested with 23.04.3 from flathub (can't test with the kdeapps remote as I can't access it anymore for a few days now). Only tested with PDF on Gnome environment using Wayland. For creating a backtrace I've installed libokular5core10-dbgsym and okular-dbgsym, this is the output:

gdb -batch -n -ex 'set pagination off' -ex run -ex bt -ex 'bt full' -ex 'thread apply all bt full' --args okular

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.debian.net>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff15ff6c0 (LWP 10170)]
QSocketNotifier: Can only be used with threads started with QThread
qt.qpa.qgnomeplatform.theme: The desktop style for QtQuick Controls 2 applications is not available on the system (qqc2-desktop-style). The application may look broken.
[New Thread 0x7fffeb0ab6c0 (LWP 10172)]
[New Thread 0x7fffe28aa6c0 (LWP 10173)]
[New Thread 0x7fffea8aa6c0 (LWP 10174)]
[New Thread 0x7fffea0a96c0 (LWP 10175)]
[New Thread 0x7fffe98a86c0 (LWP 10176)]
[New Thread 0x7fffe90686c0 (LWP 10177)]
[New Thread 0x7fffe88596c0 (LWP 10178)]
[New Thread 0x7fffe14236c0 (LWP 10180)]
[Thread 0x7fffe98a86c0 (LWP 10176) exited]
[New Thread 0x7fffe98a86c0 (LWP 10230)]
[New Thread 0x7fffb7fff6c0 (LWP 10231)]
[Thread 0x7fffe98a86c0 (LWP 10230) exited]
[New Thread 0x7fffe98a86c0 (LWP 10236)]
[Thread 0x7fffb7fff6c0 (LWP 10231) exited]
[Thread 0x7fffe98a86c0 (LWP 10236) exited]
[New Thread 0x7fffe98a86c0 (LWP 10247)]
[New Thread 0x7fffb7fff6c0 (LWP 10248)]
[Thread 0x7fffe98a86c0 (LWP 10247) exited]
[Thread 0x7fffb7fff6c0 (LWP 10248) exited]
[Thread 0x7fffe14236c0 (LWP 10180) exited]
[Thread 0x7fffeb0ab6c0 (LWP 10172) exited]
[Thread 0x7fffe28aa6c0 (LWP 10173) exited]
[Thread 0x7ffff15ff6c0 (LWP 10170) exited]
[Thread 0x7fffe90686c0 (LWP 10177) exited]
[Thread 0x7fffea0a96c0 (LWP 10175) exited]
[Thread 0x7fffea8aa6c0 (LWP 10174) exited]
[Thread 0x7ffff1a249c0 (LWP 10167) exited]
[Thread 0x7fffe88596c0 (LWP 10178) exited]
[New process 10167]
[Inferior 1 (process 10167) exited normally]
No stack.
No stack.


STEPS TO REPRODUCE
1. Open PDF
2. try to pinch to zoom

OBSERVED RESULT
nothing happens

EXPECTED RESULT
document changing size.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Debian Testing Trixie
(available in About System)
KDE Plasma Version: -
Gnome Version: 43.7, but some apps are already 44.
KDE Frameworks Version: 5.107.0
Qt Version: KDE Frameworks 
Version 5.107.0

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-08-23 16:27:51 UTC
Indeed, the feature hasn't been implemented yet.
Comment 2 Richard 2023-08-23 16:29:27 UTC
Interesting. I wouldn't have guessed something like this could be missing in 2023. Is there a way to mark this as feature request then?
Comment 3 Nate Graham 2023-08-23 16:43:44 UTC
I changed it to "wishlist" already to reflect that.
Comment 4 5e43 2023-11-08 14:06:24 UTC
Vote for this feature request. Zooming with touchpad is indispensable for laptop. I think this should be a high priority on the wishlist. Please at least implement this in Wayland.
Comment 5 Quinten Kock 2024-06-08 18:44:40 UTC
I would also like this feature.

IIRC Gwenview already has it, would it be possible to reuse any code from there?
Comment 6 I don't need a name 2024-06-17 16:11:19 UTC
This is the only reason I'm still using evince as my pdf viewer.
Comment 7 Fieldservice4 2024-06-25 17:56:51 UTC
Adding to this.

My work in Windows 11 is more productive partly due to the "pinch zoom" on touch-pad, which is utilized a lot professionally when quickly zooming in/out in presentations and other various documentations. 

However, "pinch-zoom" works flawlessly on both my laptops touch-screens, in Okular, with KDE 6.1! So the feature is already there and working for touch screen displays, but for some reason missing for touch pads.
Comment 8 Bug Janitor Service 2024-09-13 03:17:41 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/1052