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:
parent
7d28d7dec2
commit
01aedca76d
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue