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 where a Slider popup display set to show on mouse hover wouldn't show when dragging the mouse over the Slider and releasing

This commit is contained in:
ed 2017-09-22 10:29:30 +01:00
parent 6290e95152
commit f83fcafb84
2 changed files with 6 additions and 0 deletions

View file

@ -1602,6 +1602,10 @@ void Slider::mouseUp (const MouseEvent&) { pimpl->mouseUp(); }
void Slider::mouseMove (const MouseEvent&) { pimpl->mouseMove(); }
void Slider::mouseExit (const MouseEvent&) { pimpl->mouseExit(); }
// If popup display is enabled and set to show on mouse hover, this makes sure
// it is shown when dragging the mouse over a slider and releasing
void Slider::mouseEnter (const MouseEvent&) { pimpl->mouseMove(); }
void Slider::modifierKeysChanged (const ModifierKeys& modifiers)
{
if (isEnabled())

View file

@ -910,6 +910,8 @@ public:
void mouseMove (const MouseEvent&) override;
/** @internal */
void mouseExit (const MouseEvent&) override;
/** @internal */
void mouseEnter (const MouseEvent&) override;
private:
//==============================================================================