Drag - cancel drag on mouseout event

Hello,

I’m playing around with drag and I’ve ran into the following issue: if you move your pointer out of the canvas while dragging it will keep moving the dragged object when you go back in, even if you stop holding click.

I’ve checked out all the phaser 3 drag examples ( https://labs.phaser.io/index.html?dir=input/dragging/&q= ) and they all have this issue.

There probably is an easy solution for this since we have the sys.game.events.on(‘mouseout’) which tells us when the pointer has left the canvas but for some reason, when the pointer goes back in, it registers it as a drag. Probably because the pointer was let go out of the canvas and it didn’t register the dragend event.