babylonjs-gui 5.2.0 → 5.3.0
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.
- package/babylon.gui.js +9 -9
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js +1 -1
- package/babylon.gui.min.js.map +1 -1
- package/package.json +2 -2
package/babylon.gui.js
CHANGED
|
@@ -1340,8 +1340,8 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
1340
1340
|
var pointerId = pi.event.pointerId || this._defaultMousePointerId;
|
|
1341
1341
|
this._doPicking(x, y, pi, pi.type, pointerId, pi.event.button, pi.event.deltaX, pi.event.deltaY);
|
|
1342
1342
|
// Avoid overwriting a true skipOnPointerObservable to false
|
|
1343
|
-
if (this._shouldBlockPointer) {
|
|
1344
|
-
pi.skipOnPointerObservable =
|
|
1343
|
+
if (this._shouldBlockPointer || this._capturingControl[pointerId]) {
|
|
1344
|
+
pi.skipOnPointerObservable = true;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
1347
|
else {
|
|
@@ -4090,15 +4090,15 @@ var Container = /** @class */ (function (_super) {
|
|
|
4090
4090
|
if (!this._isClipped) {
|
|
4091
4091
|
for (var _i = 0, _c = this._children; _i < _c.length; _i++) {
|
|
4092
4092
|
var child = _c[_i];
|
|
4093
|
-
if (!child.isVisible || child.notRenderable)
|
|
4094
|
-
continue;
|
|
4095
4093
|
child._tempParentMeasure.copyFrom(this._measureForChildren);
|
|
4096
4094
|
if (child._layout(this._measureForChildren, context)) {
|
|
4097
|
-
if (
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4095
|
+
if (child.isVisible && !child.notRenderable) {
|
|
4096
|
+
if (this.adaptWidthToChildren && child._width.isPixel) {
|
|
4097
|
+
computedWidth = Math.max(computedWidth, child._currentMeasure.width + child._paddingLeftInPixels + child._paddingRightInPixels);
|
|
4098
|
+
}
|
|
4099
|
+
if (this.adaptHeightToChildren && child._height.isPixel) {
|
|
4100
|
+
computedHeight = Math.max(computedHeight, child._currentMeasure.height + child._paddingTopInPixels + child._paddingBottomInPixels);
|
|
4101
|
+
}
|
|
4102
4102
|
}
|
|
4103
4103
|
}
|
|
4104
4104
|
}
|