Bug 427303 - Right click with tablet pen doesn't behave as expected
Summary: Right click with tablet pen doesn't behave as expected
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: Tablets (tablet issues are only very rarely bugs in Krita!) (show other bugs)
Version: 4.3.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2020-10-03 17:57 UTC by Emilio
Modified: 2020-10-04 23:03 UTC (History)
2 users (show)

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


Attachments
Krita Log and System Information (2.98 KB, text/plain)
2020-10-03 17:57 UTC, Emilio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emilio 2020-10-03 17:57:56 UTC
Created attachment 132097 [details]
Krita Log and System Information

SUMMARY
I'm using an XP-Pen Artist Pro 12.

The right-click menu has different behaviours depending on where it begins.
Below are some examples.
All the steps are to be reproduced with the pen only, not the mouse nor the trackpad.

-- FIRST EXAMPLE --

STEPS TO REPRODUCE 
1. Select something on the canvas with any selection tool.
2. Right-click it and immediately release the button.
3. Right-click again somewhere else on the canvas and immediately release the button.

OBSERVED RESULT
Two menus are now on the screen. More appear if we right-click again multiple times.

EXPECTED RESULT
The first menu to close, and another one to appear at the second location.

-- SECOND EXAMPLE --

STEPS TO REPRODUCE
1: Right-click on a selection on the canvas, and hold down the button
2: Tap on one of the options of the menu

OBSERVED RESULT
Countless menus appear following the cursor. Sometimes this leads to a crash.
I have to quickly click with the trackpad in order to make it stop.

EXPECTED RESULT
Nothing should happen.

-- THIRD EXAMPLE --

STEPS TO REPRODUCE
1: Right click on the Layers Docker, and immediately release the button

OBSERVED RESULT
If the cursor was on any of the options of the menu, the option is selected.

EXPECTED RESULT
Nothing should happen, we should be able to right-click, then position the cursor on the option we want and tap to select it.

I have not tested this last behaviour with other Dockers.


SOFTWARE/OS VERSIONS
macOS: 11.0 (It is a beta version, but I had already observed this behaviour prior to the installation of macOS 11.0)
Qt Version: 15.12.8

ADDITIONAL INFORMATION

The log does not contain any relevant information related to the crash when it occurs.
Comment 1 Emilio 2020-10-03 18:46:05 UTC
I tried checking the checkbox mentionning right and middle click in Configure krita -> Tablet Settings.
It solved the first and the second example, but now the third happens on the canvas as well.

I don't know how the menus are handled but I believe the options should not be selected on a "click-release" event.
Comment 2 vanyossi 2020-10-04 23:03:40 UTC
I can confirm the third issue as a potencial problem on stylus users. as the manu appears so clos to the cursor and style has no fine no fine control when hovering.

1st and 2nd issues are related to you tablet manufacturer's driver im afraid :/