Hello
I have an issue with any control of the BABYLON.GUI
: when using the control.onPointerOutObservable
, it won’t trigger when the control is on the border, and the mouse directly exits the canvas. Here is a repro of the issue :
Playground
(Mouse the mouse, it will darken some rectangles on hover. When you exit the canvas, it won’t trigger the mouseout on the rectangle)
The only fix I could find is to add an html trigger canvas.addEventListener("mouseout", exit, false);
(uncomment line 42 to test)