@babylonjs/gui
Advanced tools
Comparing version 4.0.0-beta.3 to 4.0.0-beta.4
@@ -755,3 +755,3 @@ import * as tslib_1 from "tslib"; | ||
try { | ||
ev.clipboardData.setData("text/plain", this._highlightedText); | ||
ev.clipboardData && ev.clipboardData.setData("text/plain", this._highlightedText); | ||
} | ||
@@ -771,3 +771,3 @@ catch (_a) { } //pass | ||
try { | ||
ev.clipboardData.setData("text/plain", this._highlightedText); | ||
ev.clipboardData && ev.clipboardData.setData("text/plain", this._highlightedText); | ||
} | ||
@@ -774,0 +774,0 @@ catch (_a) { } //pass |
@@ -287,2 +287,3 @@ import { Observable } from "@babylonjs/core/Misc/observable"; | ||
if (this._downCount !== 0) { | ||
this._downCount++; | ||
return false; | ||
@@ -300,10 +301,17 @@ } | ||
Control3D.prototype._onPointerUp = function (target, coordinates, pointerId, buttonIndex, notifyClick) { | ||
this._downCount = 0; | ||
this._downCount--; | ||
delete this._downPointerIds[pointerId]; | ||
if (notifyClick && (this._enterCount > 0 || this._enterCount === -1)) { | ||
this.onPointerClickObservable.notifyObservers(new Vector3WithInfo(coordinates, buttonIndex), -1, target, this); | ||
if (this._downCount < 0) { | ||
// Handle if forcePointerUp was called prior to this | ||
this._downCount = 0; | ||
return; | ||
} | ||
this.onPointerUpObservable.notifyObservers(new Vector3WithInfo(coordinates, buttonIndex), -1, target, this); | ||
if (this.pointerUpAnimation) { | ||
this.pointerUpAnimation(); | ||
if (this._downCount == 0) { | ||
if (notifyClick && (this._enterCount > 0 || this._enterCount === -1)) { | ||
this.onPointerClickObservable.notifyObservers(new Vector3WithInfo(coordinates, buttonIndex), -1, target, this); | ||
} | ||
this.onPointerUpObservable.notifyObservers(new Vector3WithInfo(coordinates, buttonIndex), -1, target, this); | ||
if (this.pointerUpAnimation) { | ||
this.pointerUpAnimation(); | ||
} | ||
} | ||
@@ -321,2 +329,6 @@ }; | ||
} | ||
if (this._downCount > 0) { | ||
this._downCount = 1; | ||
this._onPointerUp(this, Vector3.Zero(), 0, 0, true); | ||
} | ||
} | ||
@@ -323,0 +335,0 @@ }; |
@@ -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.0.0-beta.3", | ||
"version": "4.0.0-beta.4", | ||
"repository": { | ||
@@ -198,3 +198,3 @@ "type": "git", | ||
"dependencies": { | ||
"@babylonjs/core": "4.0.0-beta.3", | ||
"@babylonjs/core": "4.0.0-beta.4", | ||
"tslib": "^1.9.3" | ||
@@ -201,0 +201,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1640391
17511
+ Added@babylonjs/core@4.0.0-beta.4(transitive)
- Removed@babylonjs/core@4.0.0-beta.3(transitive)
Updated@babylonjs/core@4.0.0-beta.4