Bug 488479

Summary: Quickly lifting the pen away from the screen while pressing down a pen button breaks touch gesture actions
Product: [Applications] krita Reporter: Tyson Tan <tysontanx>
Component: Tablets (tablet issues are only very rarely bugs in Krita!)Assignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tyson Tan 2024-06-14 01:45:25 UTC
SUMMARY
On a Pen Display or an Android tablet, lifting the pen away from the screen while pressing down a pen button breaks the screen's touch gesture actions.

For example, if I pressed down Middle Button to pan the canvas, and accidentally moved my pen too high and the digitizer lost the pen input, I was unable to rotate the canvas with two-finger gestures afterward.

STEPS TO REPRODUCE
1. On a Pen Display or an Android tablet
2. Press down Middle Mouse button to pan canvas
3. Quickly lift the pen up, away from the range of the screen's digitizer
4. Do not put the pen back in range
5. Use two finger gestures to rotate the canvas

OBSERVED RESULT
I could not use two finger gestures to rotate the canvas.

EXPECTED RESULT
I should be able to use two finger gestures to rotate the canvas.

SOFTWARE/OS VERSIONS
5.2.3 beta 1 and the latest nightly versions.

It seems that if I lifted my pen slowly away from the range, it's less likely to break the touch gestures. But I could not reliably reproduce the phenomenon.

During my test, there was one occasion under Android which I lost the Middle Button input afterward. I wonder if this has something to do with the issue.