@babylonjs/gui 8.3.1 → 8.4.1

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.
@@ -798,7 +798,9 @@ export class Control {
798
798
  }
799
799
  }
800
800
  if (control.children !== undefined) {
801
- control.children.forEach(recursivelyFirePointerOut);
801
+ for (const child of control.children) {
802
+ recursivelyFirePointerOut(child);
803
+ }
802
804
  }
803
805
  };
804
806
  recursivelyFirePointerOut(this);
@@ -2043,7 +2045,10 @@ export class Control {
2043
2045
  this._getStyleProperty("fontFamily", "Arial");
2044
2046
  this._fontOffset = Control._GetFontOffset(this._font, this._host?.getScene()?.getEngine());
2045
2047
  //children need to be refreshed
2046
- this.getDescendants().forEach((child) => child._markAllAsDirty());
2048
+ const descendants = this.getDescendants();
2049
+ for (const child of descendants) {
2050
+ child._markAllAsDirty();
2051
+ }
2047
2052
  }
2048
2053
  /**
2049
2054
  * A control has a dimension fully defined if that dimension doesn't depend on the parent's dimension.