After a while I fixed it. There's another touch event. You can solve it as follows:
$(window).on "mousemove touchmove", (e) -> touch = undefined if e.originalEvent.touches touch = e.originalEvent.touches[0] pos_x = e.pageX or touch.pageX pos_y = e.pageY or touch.pageY
Hope this helps others.
source share