From ffc98263c8cdc4c091583e09ae1eb304841d42c7 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Mon, 23 Oct 2023 20:40:13 +0200 Subject: [PATCH] Fixes #186 --- src/OSDAnnotationLayer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/OSDAnnotationLayer.js b/src/OSDAnnotationLayer.js index 5c07bd8..1143c44 100644 --- a/src/OSDAnnotationLayer.js +++ b/src/OSDAnnotationLayer.js @@ -200,6 +200,7 @@ export class AnnotationLayer extends EventEmitter { releaseHandler: evt => { if (this.tools.current.isDrawing) { firstDragDone = true; + // continue in dragging mode if moveHandler has not been fired // if (!started) return; const { x , y } = this.tools.current.getSVGPoint(evt.originalEvent); @@ -245,6 +246,8 @@ export class AnnotationLayer extends EventEmitter { if (evt.key.toLowerCase() === hotkey && !this.tools.current.isDrawing) { this.mouseTracker.enabled = inverted; this.tools.current.enabled = inverted; + + firstDragDone = false; } };