Inertial mouse wheel events have screen position of 0,0

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);
1 Like

Thanks, I’ve pushed this to develop.

Ed