Skip to content

Commit

Permalink
fix(editor): ignore mouse up event on bond action if mouse down was n…
Browse files Browse the repository at this point in the history
…ot captured (#1)

The action handler requires a starting point.
  • Loading branch information
targos authored Feb 22, 2024
1 parent 36dffe0 commit b3b2157
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 b3b2157

Please sign in to comment.