Pinch zoom triggers OnPickTrigger


On mobile device, pinch zoom triggers OnPickTrigger. So when pinch zooming over a model the model gets selected. Is this expected behavior?

As a workaround to actionManager I used onPointerObservable and checked the time between pointerdown and pick.

scene.onPointerObservable.add((e) => {
    switch (e.type) {
        case BABYLON.PointerEventTypes.POINTERDOWN:
            if (e.pickInfo.pickedMesh) {
                startTime =
        case BABYLON.PointerEventTypes.POINTERPICK:
            if (e.pickInfo.pickedMesh) {
                endTime =
                if (endTime - startTime < 250)

But I’m guessing there is a more elegant solution to this using actions?

cc @PolygonalSun

AFAIK, a POINTERPICK shouldn’t happen during a pinch gesture. Lemme take a closer look and verify something.

So, I’m able to intermittently repro this. I suspect that the code that determines if a pointer is swiping or not isn’t accounting for the multi-pointer gesture. I think I know how to fix this but let me test a couple of things.