Prevent navbar from opening when mouse has left the document