diff --git a/src/drawApp/graphics/TccKeyInteraction.ts b/src/drawApp/graphics/TccKeyInteraction.ts index d5986dc..d4be1b3 100644 --- a/src/drawApp/graphics/TccKeyInteraction.ts +++ b/src/drawApp/graphics/TccKeyInteraction.ts @@ -148,9 +148,10 @@ export abstract class KeyInteraction< } onMouseDown(e: FederatedMouseEvent) { const target = e.target as DisplayObject; - const g = target.getGraphic(); + const g = target.getGraphic(); if (!g) return; this.isMouseDown = true; + this.ratatingSprite = g._tccKey; this.mouseDownBeginPos = this.app.toCanvasCoordinates(e.global); this.mouseDownBeginRotation = this.ratatingSprite.rotation; this.changeRotation = this.mouseDownBeginRotation;