Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babylonjs/gui

Package Overview
Dependencies
Maintainers
1
Versions
541
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babylonjs/gui - npm Package Compare versions

Comparing version 4.0.0-beta.3 to 4.0.0-beta.4

4

2D/controls/inputText.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc