Skip to content

Commit

Permalink
fix(editor): ignore mouse up event on bond action if mouse down wasn\…
Browse files Browse the repository at this point in the history
…t captured

The action handler requires a starting point.
  • Loading branch information
targos committed Feb 14, 2024
1 parent 36dffe0 commit 0cfd363
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public void onChangeBond(int bond)

public boolean onMouseUp(IMouseEvent evt)
{
// Ignore event if the action didn't start in the editor.
if (origin == null) {
return false;
}

boolean ok = true;
GenericPoint pt = new GenericPoint(evt.getX(), evt.getY());
Expand Down

0 comments on commit 0cfd363

Please sign in to comment.