When the mouse cursor goes outside the canvas element, press, release and position data is not coming.