touchmove 实时获取当前元素

var ele = document.elementFromPoint(touch.pageX, touch.pageY);   //根据坐标直接返回元素document.elementFromPoint()

 

eg:


    $("ul li").on("touchmove touchstart", function(e) {
     event.preventDefault();
     e = e || window.event;
     var touch = e.originalEvent.targetTouches[0];
     var ele = document.elementFromPoint(touch.pageX, touch.pageY);
    });

posted @ 2016-10-10 16:16  mrt_yy  阅读(2425)  评论(0编辑  收藏  举报