Inertial mouse wheel events have screen position of 0,0


#1

Inertial mouse wheel events have screen position of 0,0. I use mouseWheel to zoom in/out my component around the mouse position. As soon as the wheel goes inertial, the zoom point goes negative top/left of my component.

I think it should be in MouseInputSourceInternal::handleWheel

    if (lastNonInertialWheelTarget == nullptr || ! wheel.isInertial)
        lastNonInertialWheelTarget = getTargetForGesture (peer, positionWithinPeer, time, screenPos);
    else
        screenPos = peer.localToGlobal (positionWithinPeer);

#2

Thanks, I’ve pushed this to develop.

Ed