Handle mouse out canvas

Fixed bug where mouse out was not handled correctly resulting in navigation getting stuck.