Skip to content

Commit

Permalink
Reset position helper on layer remove
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Feb 10, 2025
1 parent a4ed4ae commit 0b9241e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/layerGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,8 @@ export class LayerGroup {
}
// reset in storage
this.#layers[index] = undefined;
// force helper update
this.#positionHelper = undefined;
// update html
layer.removeFromDOM();
}
Expand Down

0 comments on commit 0b9241e

Please sign in to comment.