diff --git a/pqAbstractItemViewEventTranslator.cxx b/pqAbstractItemViewEventTranslator.cxx index be53439974209f7be7ea940513837858b749981c..37254ea7b7c1b57464fd228935b269be0f0b1b0d 100644 --- a/pqAbstractItemViewEventTranslator.cxx +++ b/pqAbstractItemViewEventTranslator.cxx @@ -151,7 +151,7 @@ bool pqAbstractItemViewEventTranslator::translateEvent(QObject* Object, QEvent* idxStr = toIndexStr(idx); QRect r = object->visualRect(idx); relPt = wheelEvent->pos() - r.topLeft(); - int numStep = wheelEvent->delta(); + int numStep = wheelEvent->delta() > 0 ? 120 : -120; int buttons = wheelEvent->buttons(); int modifiers = wheelEvent->modifiers(); emit emit recordEvent(Object, "mouseWheel", QString("%1,%2,%3,%4,%5") diff --git a/pqBasicWidgetEventTranslator.cxx b/pqBasicWidgetEventTranslator.cxx index 05f64a56da7308eea9460837756961195bfaa70c..9e46df88455398bbd261bd7e847599e67579ea2b 100644 --- a/pqBasicWidgetEventTranslator.cxx +++ b/pqBasicWidgetEventTranslator.cxx @@ -102,8 +102,9 @@ bool pqBasicWidgetEventTranslator::translateEvent(QObject* Object, { int buttons = wheelEvent->buttons(); int modifiers = wheelEvent->modifiers(); + int numStep = wheelEvent->delta() > 0 ? 120 : -120; emit emit recordEvent(Object, "mouseWheel", QString("%1,%2,%3,%4,%5") - .arg(wheelEvent->delta()) + .arg(numStep) .arg(buttons) .arg(modifiers) .arg(wheelEvent->x())