Skip to content

Commit

Permalink
Avoid extra merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Jan 24, 2025
1 parent c6d5cce commit afa0ceb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/layerGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,10 @@ export class LayerGroup {
* @returns {PositionHelper} The position helper.
*/
getPositionHelper() {
if (typeof this.#positionHelper === 'undefined' ||
this.#positionHelperNeedsUpdate) {
if (this.#positionHelperNeedsUpdate) {
this.#positionHelper = undefined;
}
if (typeof this.#positionHelper === 'undefined') {
for (const layer of this.#layers) {
if (layer instanceof ViewLayer) {
const controller = layer.getViewController();
Expand Down

0 comments on commit afa0ceb

Please sign in to comment.