I’m testing the new version (upgrading from "@babylonjs/core": "4.1.0" to 4.2.0-alpha.27, and noticed an API change that I wasn’t expecting.
When using: scene.onPrePointerObservable.add the event.event.pointerId is undefined on safari desktop (I guess that it might be undefined on different browsers as well) the pointerId is used to identify the “finger” in multi-touch screens.
The only change I made was upgrading babylon version and then I noticed the bug.
I would very much appreciate your help in this matter.
I’m not sure if there are any plans on implementing multi touch APIs for desktops (trackpads for instance) if not I think it will be better to at least set the pointerId to 1 for backward compatibility.
thanks a lot
I’m not sure if such quick fix lead to some other issues here. But I did encounter the error today…
When I use <script src="https://preview.babylonjs.com/babylon.js"></script> in my demo, there’s an error when loading.
Uncaught TypeError: Cannot assign to read only property ‘pointerId’ of object ‘#’
at HTMLCanvasElement._onPointerMove (babylon.js:16)
If I replace the preview version with <script src="https://cdn.babylonjs.com/babylon.max.js"></script>, the error is gone.