Add support for resetting the detached overlays
Add support for resetting saved data for detached overlays. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -241,13 +241,9 @@ public class OverlayRenderer extends MouseListener implements KeyListener
|
||||
if (overlay.getBounds().contains(mousePoint))
|
||||
{
|
||||
if (SwingUtilities.isRightMouseButton(mouseEvent))
|
||||
{
|
||||
// detached overlays have no place to reset back to
|
||||
if (overlay.getPosition() != OverlayPosition.DETACHED)
|
||||
{
|
||||
overlayManager.resetOverlay(overlay);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
final Point offset = new Point(mousePoint.x, mousePoint.y);
|
||||
|
||||
Reference in New Issue
Block a user