code: function mousemove_callback(e) {
              var x  = e.pageX || e.originalEvent.touches[0].pageX;
              var y  = e.pageY || e.originalEvent.touches[0].pageY;
  
              if (Math.abs(oX - x) > maxMove || Math.abs(oY - y) > maxMove) {
                  if (timeout) clearTimeout(timeout);
              }
          }
docs: mousemove or touchmove callback