Skip to content

Commit

Permalink
Fixes #186
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimon committed Oct 23, 2023
1 parent 53cf6bb commit ffc9826
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/OSDAnnotationLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
};

Expand Down

0 comments on commit ffc9826

Please sign in to comment.