Skip to content

Commit

Permalink
Tool lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimon committed Jan 24, 2023
1 parent de23ac6 commit dae9088
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/OSDAnnotationLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,10 @@ export class AnnotationLayer extends EventEmitter {

this.selectedShape.mouseTracker = editableShapeMouseTracker;

this.selectedShape.on('update', fragment =>
this.emit('updateTarget', this.selectedShape.element, fragment));
this.selectedShape.on('update', fragment => {
toolForAnnotation.destroy();
this.emit('updateTarget', this.selectedShape.element, fragment)
});
} else {
this.selectedShape = shape;

Expand Down

0 comments on commit dae9088

Please sign in to comment.