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:
parent
79c54bc076
commit
b198fa4c2c
1 changed files with 10 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue