@abreen/tada 1.15.3 → 1.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abreen/tada",
3
- "version": "1.15.3",
3
+ "version": "1.15.4",
4
4
  "type": "module",
5
5
  "description": "A static site generator",
6
6
  "license": "MIT",
@@ -144,6 +144,7 @@ export default function mountSlides(window: Window): void | (() => void) {
144
144
  let isAnnotating = false;
145
145
  let isShiftPressed = false;
146
146
  let isErasing = false;
147
+ let isDrivingTrace = false;
147
148
  let activeAnnotation: {
148
149
  slide: HTMLElement;
149
150
  previousX: number;
@@ -374,7 +375,12 @@ export default function mountSlides(window: Window): void | (() => void) {
374
375
  continue;
375
376
  }
376
377
 
377
- button.click();
378
+ isDrivingTrace = true;
379
+ try {
380
+ button.click();
381
+ } finally {
382
+ isDrivingTrace = false;
383
+ }
378
384
  return true;
379
385
  }
380
386
 
@@ -863,7 +869,7 @@ export default function mountSlides(window: Window): void | (() => void) {
863
869
  }
864
870
 
865
871
  function handleAnnotationClick(event: MouseEvent): void {
866
- if (!isPresenting || !isAnnotating) {
872
+ if (!isPresenting || !isAnnotating || isDrivingTrace) {
867
873
  return;
868
874
  }
869
875