Canvas: clear mousedown/click if mouse leaves canvas.

This commit is contained in:
Thomas Geymayer 2013-06-29 14:29:38 +02:00
parent 2d23c5351f
commit d4b48cec5d

View File

@ -112,6 +112,13 @@ namespace canvas
case Event::MOUSE_LEAVE:
// Mouse leaves window and therefore also current mouseover element
handleMove(event, EventPropagationPath());
// Event is only send if mouse is moved outside the window or dragging
// has ended somewhere outside the window. In both cases a mouse button
// has been released, so no more mouse down or click...
_last_mouse_down.clear();
_last_click.clear();
return true;
case Event::WHEEL:
break;