Hi, I have a question. I have meshes that I attach exit and entry triggers to. The problem is this: when I move from the canvas to the search area (browser), the out trigger doesn’t work, but still stays on the over trigger. Has anyone encountered this, or is there a tool that monitors this?
OnPointerOverTrigger and OnPointerOutTrigger are simulated events in Babylon.js. Unlike HTML elements, meshes in a 3D scene don’t have native mouseleave events, so the engine has to track pointer movement and calculate when you’ve moved off a mesh.
When you quickly drag your mouse off the canvas entirely, the browser stops sending pointermove events to the canvas. Without these movement events, Babylon.js can’t detect that the pointer left the mesh, leaving it “stuck” in the over state.
If you mean when you move the mouse from the canvas element to an HTML element, then yeah the out trigger won’t fire (I think), for that I’d recommend going with an out of focus check on canvas probably.