Skip to content

Commit

Permalink
fix next marker passed to "markercreate" event handlers in the newFre…
Browse files Browse the repository at this point in the history
…ehandMarkerOnPointerUp flow instead of the one that was just created
  • Loading branch information
ailon committed Nov 30, 2023
1 parent c7cc782 commit 4363f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MarkerArea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ export class MarkerArea {
}
this.addUndoStep();
this.eventListeners['markercreate'].forEach((listener) =>
listener(new MarkerEvent(this, this._currentMarker))
listener(new MarkerEvent(this, marker))
);
}

Expand Down

0 comments on commit 4363f48

Please sign in to comment.