From eeede6e973cb20a5555c283598f3ee591f8aca85 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Tue, 24 Jan 2023 09:40:35 +0100 Subject: [PATCH] Revert --- src/OSDAnnotationLayer.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/OSDAnnotationLayer.js b/src/OSDAnnotationLayer.js index abbe760..2990095 100644 --- a/src/OSDAnnotationLayer.js +++ b/src/OSDAnnotationLayer.js @@ -722,10 +722,8 @@ export class AnnotationLayer extends EventEmitter { this.selectedShape.mouseTracker = editableShapeMouseTracker; - this.selectedShape.on('update', fragment => { - toolForAnnotation.destroy(); - this.emit('updateTarget', this.selectedShape.element, fragment) - }); + this.selectedShape.on('update', fragment => + this.emit('updateTarget', this.selectedShape.element, fragment)); } else { this.selectedShape = shape;