OnPickDownTrigger for touch devices

repro: Babylon.js Playground

Use chrome, F12 to bring up the devTools, toggle device toolbar (used Samsung Galaxy S20 Ultra). Click on the sphere named “b”, then click on the thin instanced sphere, console should show two “b” and two “sphere”. Now click on the “b” sphere again, console now shows “b”, then “sphere”. If you now click on the thin instanced sphere, console now shows “sphere”, then “b”.

Firefox is also showing the same behavior. As long as its a touch device, the meshUnderPointer seems to be borked when you touch a thin instanced mesh. My question: is this wai ?

cc @amoebachant

Thanks for reporting this @phaselock - I am able to reproduce it and I’m investigating the root cause.

2 Likes

OK, I was able to track down the root cause and just merged a fix: When processing pointer down triggers, ensure the meshUnderPointer pa… · BabylonJS/Babylon.js@33a0058 · GitHub

Please let me know if that solves the problem for you @phaselock

Thanks!

5 Likes

Tested with 7.49, fix works. Thanks!

Marking as solved!

3 Likes