Commit 2925c5ab authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier

In "DefaultModeAdapter", made resizing of scenario elements a two-step...

In "DefaultModeAdapter", made resizing of scenario elements a two-step process: first, select element, then use resize handles at object edges.

Since commit c91dad12, a scenario element was selected when hovering over it.
This caused problems in the postvisualization. It was very tricky to track one
specific agent because when you moved the mouse cursor over the canvas different
agents were selected immediately. Therefore, I have reverted this behavior and
resizing a scenario is a two-step process now.
parent 45ebccbe
Pipeline #105604 passed with stages
in 162 minutes and 12 seconds
......@@ -21,6 +21,7 @@ public class DefaultModeAdapter implements IMode {
@Override
public void mouseClicked(final MouseEvent event) {
panelModel.setMousePosition(event.getPoint());
panelModel.setSelectedElement(panelModel.getMousePosition());
panelModel.notifyObservers();
}
......@@ -64,7 +65,6 @@ public class DefaultModeAdapter implements IMode {
@Override
public void mouseMoved(MouseEvent e) {
panelModel.setMousePosition(e.getPoint());
panelModel.setSelectedElement(panelModel.getMousePosition());
panelModel.notifyObservers();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment