Commit 16b7db53 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Ignore delta 0 wheel events on OSX

Differential Revision: https://phabricator.kde.org/D2290
parent f3eff3b9
......@@ -340,6 +340,17 @@ bool KisInputManager::eventFilterImpl(QEvent * event)
QWheelEvent *wheelEvent = static_cast<QWheelEvent*>(event);
KisSingleActionShortcut::WheelAction action;
/**
* Ignore delta 0 events on OSX, since they are triggered by tablet
* proximity when using Wacom devices.
*/
#ifdef Q_OS_MAC
if(wheelEvent->delta() == 0) {
retval = true;
break;
}
#endif
if(wheelEvent->orientation() == Qt::Horizontal) {
if(wheelEvent->delta() < 0) {
action = KisSingleActionShortcut::WheelRight;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment