fixed bug when mouse is out but still clicking

--HG--
branch : hold-input
Merge pull request #3 from Jeffrey04/master

only if you intend to use the looping feature though