Sorry to resurrect this old post, but is there any modern mitigation for this problem? I’ve tried the method above (simulatePointerUp), which does not work for me at all (besides onCanvasBlurObservable being the wrong abstraction, since the canvas does not lose focus when dragging out of bounds). Dispatching a mouseup on canvas or the iframe document didn’t work either. Any ideas how to tackle this?
Everything is in this thread so why do you need a new one?
Make arc camera looking at the box, put in in a Storybook. Make a Storybook preview for mobile or something small. And start rotating the camera so the mouse will get out of the preview.
Every time there will be this error.
So everything is in this Thread now. There is not just a solution.
If you want me to copy and past it in new Bug ok I can do it but what is the point?
Add an event listener to document and use Node.contains() to find whether the target of the event is inside your specified element.
var specifiedElement = document.getElementById('a');
//I'm using "click" but it works with any event
document.addEventListener('click', function(event) {
var isClickInside = specifiedElement.contains(event.target);
if (!isClickInside) {
//the click was outside the specifiedElement, do something
}
});
Personally, I am not asking for anything. This was simply a quote from the above.
Point is I will eventually start getting interested in parts like (quote, sry again;)
All I can add is I hope you will (finally) find/obtain a solution for your case,