Hey @JPeer264, as of version 5.0.0-alpha.19, I was unable to repro what you were seeing. I tested this with both Chrome and Firefox. I just wanted to make sure that I was understanding your repro steps.
Reduce window size so that there is a gap between right side of browser window and right side of screen.
Right-click on Canvas window and, while holding right mouse button, move off of screen to the right so that the cursor is off of the browser window.
Release right mouse button
Return cursor to canvas (while not pressing any mouse buttons) and movement should still happen.
Hey @PolygonalSun , thanks for checking this out. Yes, these are exactly the steps. Does this mean there is no movement anymore when you release the right mouse button?
Tbh I just tried it in v4.2.0, but rechecked in the playground with v5.0.0 (not sure if it has v5.0.0-alpha.19 tho) and the movement is still going without any mouse button pressed (Chrome).
So I talked with some of my team and none of us were able to repro this. Would it be possible for you to try to repro this in Incognito Mode or with Extensions disabled?
When the mousedown starts create a observable for mouseout and then detach the controls. Then add a listener to reattach the controls when the mousein happens.
You gotta clean up your observables on each step too. Ive done it for a few projects now, but I cant share that code now as its become kind of standard to our React/iFrame website template and is something that is the clients code now and not mine to share.
I tried the given playground in Incognito Mode. But this still happens to me Maybe it is my setup (MacBook + Magic Mouse)? If you want I could also go a little deeper, if you tell me where I should look in the code.
@Pryme8 I think I already found that one, but didn’t quite work well for me.
I think a different target won’t be the solution here as with the left mouse button everything is alright. It’s only the right mouse button which does not release the event.
See if the event is actually firing by having some sort of console.log and if it is then let me know. The detach controls worked for us in the past, but Im not sure if I had to fire a manual click on the canvas as well to release the initial one.