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

Only resize SidePanel on mouse drag if it is currently showing

This commit is contained in:
ed 2017-12-07 10:27:46 +00:00
parent 11c5845eb1
commit 4800216b82

View file

@ -153,7 +153,7 @@ void SidePanel::mouseDrag (const MouseEvent& e)
setBounds (getBounds().withX (startingBounds.getX() + jmax (amountMoved, 0)));
}
}
else
else if (isShowing)
{
auto relativeMouseDownPosition = getLocalPoint (e.eventComponent, e.getMouseDownPosition());
auto relativeMouseDragPosition = getLocalPoint (e.eventComponent, e.getPosition());