@teachinglab/omd 0.7.35 → 0.7.36

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.
@@ -95,7 +95,7 @@ export class EventManager {
95
95
  activeTool.onPointerDown(normalizedEvent);
96
96
  // If tool hasn't explicitly set isDrawing, set it for backwards compatibility
97
97
  // (tools like PencilTool and EraserTool expect isDrawing to be true)
98
- if (this.isDrawing === false && activeTool.constructor.name !== 'PointerTool') {
98
+ if (this.isDrawing === false && activeTool?.name !== 'pointer') {
99
99
  this.isDrawing = true;
100
100
  }
101
101
  }
@@ -447,4 +447,4 @@ export class EventManager {
447
447
  this.isDrawing = false;
448
448
  this.isInitialized = false;
449
449
  }
450
- }
450
+ }