1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed bug where inertial mouse wheel events had screen position (0, 0)

This commit is contained in:
ed 2017-02-13 12:12:38 +00:00
parent 7d28d7dec2
commit 01aedca76d

View file

@ -345,6 +345,8 @@ public:
// scrollable components.
if (lastNonInertialWheelTarget == nullptr || ! wheel.isInertial)
lastNonInertialWheelTarget = getTargetForGesture (peer, positionWithinPeer, time, screenPos);
else
screenPos = peer.localToGlobal (positionWithinPeer);
if (Component* target = lastNonInertialWheelTarget)
sendMouseWheel (*target, screenPos, time, wheel);