fix crash when mouse is pressed and moved outside renderArea