Extended for mobile devices

This update should do the trick for mobile devices, using their touch-events instead of the mouse-events.
It still seems to be a bit slow on some mobile devices, possibly due to the calculation of so many values during the move event...