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:
parent
11c5845eb1
commit
4800216b82
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue