konvajs/konva

Event when you mousedown and move outside canvas.

bogdan-nourescu opened this issue · 1 comments

Starting from this code:
https://konvajs.org/downloads/code/select_and_transform/Basic_demo.html

I just added a console.log("eventName") on each of the event listeners: mouseup, click, mousedown.
If you start a selection and finish it, with will only print "mousedown mouseup"
If you start a selection, and don't release the mouse until you exit the canvas, the events start behaving differently. If you do the same thing as before, it will print "mousedown mouseup click"
Animation

I changed a demo bit. The selection rectangle hit area is affecting events flow. Disabling events for it with listening: false works better.