Today I had the following thing going on: I had an existing mousemove event and added touchmove later on, like this:
$(window).on "mousemove touchmove", (e) ->
pos_x = e.pageX
pos_y = e.pageY
Unfortunately both variables were undefined on mobile devices.