Added a check to make sure the mouse button was down on mouseOut, fixes #3

Hi,

this was already fixed in 5458ddd but unfortunately got lost in 3c15037. Fixes issue #3.