Solves #48 by detecting the touch event on the document