@babylonjs/gui
Advanced tools
Comparing version 4.1.0-alpha.8 to 4.1.0-alpha.12
@@ -28,2 +28,6 @@ import { Nullable } from "@babylonjs/core/types"; | ||
pointerUpAnimation: () => void; | ||
/** | ||
* Gets or sets a boolean indicating that the button will let internal controls handle picking instead of doing it directly using its bounding info | ||
*/ | ||
delegatePickingToChildren: boolean; | ||
private _image; | ||
@@ -30,0 +34,0 @@ /** |
@@ -18,2 +18,6 @@ import * as tslib_1 from "tslib"; | ||
_this.name = name; | ||
/** | ||
* Gets or sets a boolean indicating that the button will let internal controls handle picking instead of doing it directly using its bounding info | ||
*/ | ||
_this.delegatePickingToChildren = false; | ||
_this.thickness = 1; | ||
@@ -73,2 +77,15 @@ _this.isPointerBlocker = true; | ||
} | ||
if (this.delegatePickingToChildren) { | ||
var contains = false; | ||
for (var index = this._children.length - 1; index >= 0; index--) { | ||
var child = this._children[index]; | ||
if (child.isEnabled && child.isHitTestVisible && child.isVisible && !child.notRenderable && child.contains(x, y)) { | ||
contains = true; | ||
break; | ||
} | ||
} | ||
if (!contains) { | ||
return false; | ||
} | ||
} | ||
this._processObservables(type, x, y, pointerId, buttonIndex); | ||
@@ -75,0 +92,0 @@ return true; |
@@ -7,3 +7,3 @@ { | ||
"description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.", | ||
"version": "4.1.0-alpha.8", | ||
"version": "4.1.0-alpha.12", | ||
"repository": { | ||
@@ -198,3 +198,3 @@ "type": "git", | ||
"dependencies": { | ||
"@babylonjs/core": "4.1.0-alpha.8", | ||
"@babylonjs/core": "4.1.0-alpha.12", | ||
"tslib": "^1.9.3" | ||
@@ -201,0 +201,0 @@ }, |
Sorry, the diff of this file is not supported yet
1648560
17583
+ Added@babylonjs/core@4.1.0-alpha.12(transitive)
- Removed@babylonjs/core@4.1.0-alpha.8(transitive)