Ignore click if pointer down event is for orbit

Hi All-

I know there’s an easy solution for this but I can’t figure it out.

I want to click over the ground mesh to add additional mesh and pointerdown events that are not over a mesh to make my camera orbit.

And this works fine except when the pointerdown is not over a mesh but the pointerup is over a mesh.

In this playground you can click just below the ground mesh and pull down to tilt the plane until the pointer is above the ground mesh. When you release the button it add a mesh.

How can I prevent this from happening?



This seems to work. Using scene.onPointerDown