i'm trying to get it work on Touch devices like a Smartphone or a table and I can't. I guess the problem comes getting var xx and var yy, with the mouse you can get the position directly using pageX and pageY, but working with touche events I think you should use targetToches[0].pagex and pagey.