Skip to content

Commit

Permalink
update(src/canvas/SelectableCanvas.ts): _setActiveObject
Browse files Browse the repository at this point in the history
  • Loading branch information
zhe-he committed Sep 18, 2023
1 parent 5fc9171 commit ca0b97e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/canvas/SelectableCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1108,8 +1108,8 @@ export class SelectableCanvas<EventSpec extends CanvasEvents = CanvasEvents>
if (object instanceof ActiveSelection && this._activeSelection !== object) {
this._activeSelection.dispose();
this._activeSelection = object;
this._activeSelection.set('canvas', this);
this._activeSelection.setCoords();
object.set('canvas', this);
object.setCoords();
}

return true;
Expand Down

0 comments on commit ca0b97e

Please sign in to comment.