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

Fixed a bug on linux where the mouse pointer would jump around while dragging sliders

This commit is contained in:
hogliux 2017-04-03 11:55:12 +01:00
parent 79c54bc076
commit b198fa4c2c

View file

@ -2268,13 +2268,18 @@ public:
{
updateKeyModifiers ((int) movedEvent.state);
lastMousePos = Point<int> (movedEvent.x_root, movedEvent.y_root);
if ((movedEvent.state & (Button1MotionMask | Button2MotionMask
| Button3MotionMask | Button4MotionMask
| Button5MotionMask)) != 0)
{
lastMousePos = Point<int> (movedEvent.x_root, movedEvent.y_root);
if (dragState->dragging)
handleExternalDragMotionNotify();
if (dragState->dragging)
handleExternalDragMotionNotify();
handleMouseEvent (MouseInputSource::InputSourceType::mouse, getMousePos (movedEvent), currentModifiers,
MouseInputSource::invalidPressure, MouseInputSource::invalidOrientation, getEventTime (movedEvent));
handleMouseEvent (MouseInputSource::InputSourceType::mouse, getMousePos (movedEvent), currentModifiers,
MouseInputSource::invalidPressure, MouseInputSource::invalidOrientation, getEventTime (movedEvent));
}
}
void handleEnterNotifyEvent (const XEnterWindowEvent& enterEvent)