Browse Source

More minor tweaks to Slider unbounded mouse behaviour.

tags/2021-05-28
jules 11 years ago
parent
commit
e56d9561fc
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_gui_basics/widgets/juce_Slider.cpp

+ 2
- 0
modules/juce_gui_basics/widgets/juce_Slider.cpp View File

@@ -1051,6 +1051,8 @@ public:
else mousePos += Point<int> (delta / -2, delta / 2);
mousePos = owner.getScreenBounds().reduced (4).getConstrainedPoint (mousePos);
mouseDragStartPos = mousePosWhenLastDragged = owner.getLocalPoint (nullptr, mousePos);
valueOnMouseDown = valueWhenLastDragged;
}
else
{


Loading…
Cancel
Save