Bug 425170

Summary: Annotations should optionally ignore touch
Product: [Applications] okular Reporter: Zamundaaa <xaver.hugl>
Component: generalAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: nate, rdiaz02
Priority: NOR Keywords: usability
Version First Reported In: 1.10.80   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Zamundaaa 2020-08-09 21:35:12 UTC
When trying to annotate using a pen Okular doesn't differentiate between touch and pen events; That means in order to scroll with the touch screen one has to turn off the annotation tool first.

As a solution I think there should be an option or a button to disable drawing with touch.
Comment 1 Laura David Hurka 2020-08-10 09:10:15 UTC
I never used a touchscreen, but scrolling with two fingers should work fine. Did you try that?

AFAIK two finger gestures are sent as “pinch” gesture event first, and then Okular just needs to process and accept this gesture event.

I don’t know how comfortable that is, since it is also used for zooming.
Comment 2 Nate Graham 2020-08-10 16:22:27 UTC
Can reproduce.

Touch and pen are indeed different inputs, and were Okular to use QtQuick for the UI, this is something we'd be able to easily do. As it, I guess we need to handle it manually.
Comment 3 Zamundaaa 2020-08-10 16:57:16 UTC
The two finger gesture does not work if an annotation is enabled. It paints with the first finger and only zooms. Either way though a two finger swipe is not really very usable exactly because it also zooms.
Comment 4 ramon diaz-uriarte 2021-09-18 14:25:38 UTC
I can confirm Zamundaaa's comments in Windows too, with the current nightly build (as of 2021-09-18, v. 21.11.70) and the stable version (20.12.2): when annotation is enabled, scrolling with two fingers does not work (it zooms and it paints).

This makes it cumbersome (need to turn annotation on/off) to use Okular on tablet devices for commenting/annotating.