Skip to content

Commit e2ce7f7

Browse files
committed
Nightly
1 parent 24396d9 commit e2ce7f7

17 files changed

+131
-26
lines changed

dist/preview release/babylon.d.ts

+13
Original file line numberDiff line numberDiff line change
@@ -35168,6 +35168,15 @@ declare module BABYLON {
3516835168
_removePendingData(data: any): void;
3516935169
offlineProvider: IOfflineProvider;
3517035170
}
35171+
/**
35172+
* Information about the current host
35173+
*/
35174+
export interface HostInformation {
35175+
/**
35176+
* Defines if the current host is a mobile
35177+
*/
35178+
isMobile: boolean;
35179+
}
3517135180
/** Interface defining initialization parameters for Engine class */
3517235181
export interface EngineOptions extends WebGLContextAttributes {
3517335182
/**
@@ -35423,6 +35432,10 @@ declare module BABYLON {
3542335432
private _activeRequests;
3542435433
/** @hidden */
3542535434
_transformTextureUrl: Nullable<(url: string) => string>;
35435+
/**
35436+
* Gets information about the current host
35437+
*/
35438+
hostInformation: HostInformation;
3542635439
protected get _supportsHardwareTextureRescaling(): boolean;
3542735440
private _framebufferDimensionsObject;
3542835441
/**

dist/preview release/babylon.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/preview release/babylon.max.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -16483,8 +16483,7 @@ var FreeCameraMouseInput = /** @class */ (function () {
1648316483
if (engine.isInVRExclusivePointerMode) {
1648416484
return;
1648516485
}
16486-
var isMouseEvent = evt instanceof MouseEvent;
16487-
if (!_this.touchEnabled && evt.pointerType === "touch" && !isMouseEvent) {
16486+
if (!_this.touchEnabled && evt.pointerType === "touch") {
1648816487
return;
1648916488
}
1649016489
if (p.type !== _Events_pointerEvents__WEBPACK_IMPORTED_MODULE_4__["PointerEventTypes"].POINTERMOVE && _this.buttons.indexOf(evt.button) === -1) {
@@ -16694,7 +16693,7 @@ var FreeCameraTouchInput = /** @class */ (function () {
1669416693
};
1669516694
this._pointerInput = function (p) {
1669616695
var evt = p.event;
16697-
var isMouseEvent = evt instanceof MouseEvent;
16696+
var isMouseEvent = !_this.camera.getEngine().hostInformation.isMobile && evt instanceof MouseEvent;
1669816697
if (!_this.allowMouse && (evt.pointerType === "mouse" || isMouseEvent)) {
1669916698
return;
1670016699
}
@@ -39147,6 +39146,12 @@ var ThinEngine = /** @class */ (function () {
3914739146
this._activeRequests = new Array();
3914839147
/** @hidden */
3914939148
this._transformTextureUrl = null;
39149+
/**
39150+
* Gets information about the current host
39151+
*/
39152+
this.hostInformation = {
39153+
isMobile: false
39154+
};
3915039155
/**
3915139156
* Defines whether the engine has been created with the premultipliedAlpha option on or not.
3915239157
*/
@@ -39218,6 +39223,7 @@ var ThinEngine = /** @class */ (function () {
3921839223
// Exceptions
3921939224
if (navigator && navigator.userAgent) {
3922039225
var ua = navigator.userAgent;
39226+
this.hostInformation.isMobile = ua.indexOf("Mobile") !== -1;
3922139227
for (var _i = 0, _a = ThinEngine.ExceptionList; _i < _a.length; _i++) {
3922239228
var exception = _a[_i];
3922339229
var key = exception.key;

dist/preview release/babylon.max.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/preview release/babylon.module.d.ts

+26
Original file line numberDiff line numberDiff line change
@@ -36428,6 +36428,15 @@ declare module "babylonjs/Engines/thinEngine" {
3642836428
_removePendingData(data: any): void;
3642936429
offlineProvider: IOfflineProvider;
3643036430
}
36431+
/**
36432+
* Information about the current host
36433+
*/
36434+
export interface HostInformation {
36435+
/**
36436+
* Defines if the current host is a mobile
36437+
*/
36438+
isMobile: boolean;
36439+
}
3643136440
/** Interface defining initialization parameters for Engine class */
3643236441
export interface EngineOptions extends WebGLContextAttributes {
3643336442
/**
@@ -36683,6 +36692,10 @@ declare module "babylonjs/Engines/thinEngine" {
3668336692
private _activeRequests;
3668436693
/** @hidden */
3668536694
_transformTextureUrl: Nullable<(url: string) => string>;
36695+
/**
36696+
* Gets information about the current host
36697+
*/
36698+
hostInformation: HostInformation;
3668636699
protected get _supportsHardwareTextureRescaling(): boolean;
3668736700
private _framebufferDimensionsObject;
3668836701
/**
@@ -114455,6 +114468,15 @@ declare module BABYLON {
114455114468
_removePendingData(data: any): void;
114456114469
offlineProvider: IOfflineProvider;
114457114470
}
114471+
/**
114472+
* Information about the current host
114473+
*/
114474+
export interface HostInformation {
114475+
/**
114476+
* Defines if the current host is a mobile
114477+
*/
114478+
isMobile: boolean;
114479+
}
114458114480
/** Interface defining initialization parameters for Engine class */
114459114481
export interface EngineOptions extends WebGLContextAttributes {
114460114482
/**
@@ -114710,6 +114732,10 @@ declare module BABYLON {
114710114732
private _activeRequests;
114711114733
/** @hidden */
114712114734
_transformTextureUrl: Nullable<(url: string) => string>;
114735+
/**
114736+
* Gets information about the current host
114737+
*/
114738+
hostInformation: HostInformation;
114713114739
protected get _supportsHardwareTextureRescaling(): boolean;
114714114740
private _framebufferDimensionsObject;
114715114741
/**

dist/preview release/documentation.d.ts

+13
Original file line numberDiff line numberDiff line change
@@ -35168,6 +35168,15 @@ declare module BABYLON {
3516835168
_removePendingData(data: any): void;
3516935169
offlineProvider: IOfflineProvider;
3517035170
}
35171+
/**
35172+
* Information about the current host
35173+
*/
35174+
export interface HostInformation {
35175+
/**
35176+
* Defines if the current host is a mobile
35177+
*/
35178+
isMobile: boolean;
35179+
}
3517135180
/** Interface defining initialization parameters for Engine class */
3517235181
export interface EngineOptions extends WebGLContextAttributes {
3517335182
/**
@@ -35423,6 +35432,10 @@ declare module BABYLON {
3542335432
private _activeRequests;
3542435433
/** @hidden */
3542535434
_transformTextureUrl: Nullable<(url: string) => string>;
35435+
/**
35436+
* Gets information about the current host
35437+
*/
35438+
hostInformation: HostInformation;
3542635439
protected get _supportsHardwareTextureRescaling(): boolean;
3542735440
private _framebufferDimensionsObject;
3542835441
/**

dist/preview release/inspector/babylon.inspector.bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)