Clear mouse coordinates when mouse leaves viewport and no button has been pressed

Fixes #48