Browse Source

Only resize SidePanel on mouse drag if it is currently showing

tags/2021-05-28
ed 8 years ago
parent
commit
4800216b82
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/layout/juce_SidePanel.cpp

+ 1
- 1
modules/juce_gui_basics/layout/juce_SidePanel.cpp 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());


Loading…
Cancel
Save