Bug 364173

Summary: Tablet proximity events zoom out image to the smallest size
Product: [Applications] krita Reporter: Anton Kochkov <anton.kochkov>
Component: Tablets (tablet issues are only very rarely bugs in Krita!)Assignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla, jelena79, samir, woppin
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Attachments: Patch: Ignore delta 0 wheel events on OSX

Description Anton Kochkov 2016-06-10 08:42:53 UTC
When you bring the pen to the Wacom tablet (confirmed on various tablets) it generate some kind of event, that zoom image size to the 8%.

Looks like related to this Qt + OS X bug: https://bugreports.qt.io/browse/QTBUG-52921
And this one https://github.com/opentoonz/opentoonz/issues/148

Looks like there is even a patch available: https://codereview.qt-project.org/#/c/157139/

Reproducible: Always

Steps to Reproduce:
1. Install latest Krita on El Capitan
2. Attach Wacom tablet
3. Bring the pen and try to draw a line (it generates an event during the move close enough to the tablet surface)
Comment 1 Anton Kochkov 2016-06-14 10:00:11 UTC
Answer from Qt (they closed bug):
"What we're seeing is that these events will have a delta of 0. It should then be possible to filter them out at the application level - this worked for OpenToonz.

Filtering them out in Qt is difficult since we need to pass on the phase information. (see "cwazy patch" review)". So this now on Krita side.
Comment 2 Halla Rempt 2016-06-14 10:55:27 UTC
*** Bug 358518 has been marked as a duplicate of this bug. ***
Comment 3 Michael Chapman 2016-07-26 10:16:39 UTC
Created attachment 100311 [details]
Patch: Ignore delta 0 wheel events on OSX

I don't really know what I'm doing, but something like this?
Comment 4 Michael Chapman 2016-07-26 13:15:19 UTC
I've proposed this in phabricator here: https://phabricator.kde.org/D2290
Comment 5 Halla Rempt 2016-08-17 08:15:01 UTC
Thanks, this is fixed now in the latest dev builds.