Bug 422367 - Android sends touch events as mouseclick, making 'touch painting' config useless.
Summary: Android sends touch events as mouseclick, making 'touch painting' config usel...
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Tablets (tablet issues are only very rarely bugs in Krita!) (show other bugs)
Version: 4.3.0-beta2
Platform: Other Android 9.x
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-02 12:39 UTC by wolthera
Modified: 2021-03-16 14:18 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wolthera 2020-06-02 12:39:58 UTC
SUMMARY
When I turn off touch painting in the configuration, Krita still receives events from my palm resting on the canvas. I suspect Android+Qt is transforming these touch events as mouse pointer events. We might need to block mouse-events on the canvas as well. The tablet tester, nor the tablet logging give any good feedback here (both on my laptop and on the android device, touch is given as a mouse event), we might need to adjust them to tell us about touch events too.

STEPS TO REPRODUCE
1. Turn off touch painting in the settings.
2. Draw something on canvas.

OBSERVED RESULT
Observe how spikes will appear between palm and stylus, due to krita not blocking the palm/touch event.

EXPECTED RESULT
Expected result happens when turning off touch system-wise.


SOFTWARE/OS VERSIONS
Android 9 tablet. Google play version.
Comment 1 sh_zam 2020-06-02 14:45:41 UTC
I tried reproducing this and I could reproduce it (the spikes). But, I think this might something other than mouse events being sent, I'm not sure though.

When I rest my palm on tablet, the canvas rotates/zooms a few degrees which causes "On-Canvas Message" to pop up and if you start drawing at the same time, while the message is still visible, your stroke would be ended interrupted when the message disappears. 

There is a bug which causes events to pause from coming because of the pop-up messages. So canvas technically is still in "TabletUpdate" state even when you lifted your stylus, because "TabletEnd" was never successfully sent. So, when you later start tablet events again. It starts from the `Update` state, not the `Start` state. Hence the spike :-(

You can try to disable On-canvas Messages to verify if this is the case or if it is just another bug all together...
Comment 2 wolthera 2020-06-02 15:01:22 UTC
Nope, still have this with oncanvas messages turned off.

Tablet end not coming, seems plausible, but it seems somehow the touch events get precedent over the stylus events, which is troublesome.
Comment 3 Tiar 2020-07-28 14:31:13 UTC
@Sharaf could reproduce, so I'm confirming this.
Comment 4 tusooa 2020-08-08 23:02:43 UTC
Can confirm this on 4.3.0, Ubuntu 20.04, X11, Lenovo Yoga C930. Tablet tester recognizes touch event as mouse event. I do not know whether this is Qt's fault or X11's or something else.