|
@@ -607,6 +607,8 @@ export class InputManager {
|
|
|
};
|
|
|
|
|
|
this._onPointerMove = (evt: PointerEvent) => {
|
|
|
+ // preserve compatibility with Safari when pointerId is not present
|
|
|
+ (evt as any).pointerId = evt.pointerId ?? 0;
|
|
|
|
|
|
this._updatePointerPosition(evt);
|
|
|
|
|
@@ -634,6 +636,9 @@ export class InputManager {
|
|
|
this._pickedDownMesh = null;
|
|
|
this._meshPickProceed = false;
|
|
|
|
|
|
+ // preserve compatibility with Safari when pointerId is not present
|
|
|
+ (evt as any).pointerId = evt.pointerId ?? 0;
|
|
|
+
|
|
|
this._updatePointerPosition(evt);
|
|
|
|
|
|
if (scene.preventDefaultOnPointerDown && elementToAttachTo) {
|
|
@@ -678,6 +683,9 @@ export class InputManager {
|
|
|
this._pickedUpMesh = null;
|
|
|
this._meshPickProceed = false;
|
|
|
|
|
|
+ // preserve compatibility with Safari when pointerId is not present
|
|
|
+ (evt as any).pointerId = evt.pointerId ?? 0;
|
|
|
+
|
|
|
this._updatePointerPosition(evt);
|
|
|
|
|
|
if (scene.preventDefaultOnPointerUp && elementToAttachTo) {
|