touchend没有被触发

我已经实现了touchevents,它引发了与我的鼠标事件相同的功能:

onclick - > touchstart {做点事情}

mousemover - > touchmove {做点什么}

mouseup - > touchend {do something}

所有作品,但touchend没有触发。

        document.body.addEventListener('touchstart', start);
        function start(e){ do something ; touchDefaults(e); }

        document.body.addEventListener('touchmove', move );
        function move(e){ do something ; touchDefaults(e); }

        document.body.addEventListener('touchend', end );
        function end(e){ do something ; touchDefaults(e); }

        document.body.addEventListener('touchcancel', cancel );
        function cancel(e){ touchDefaults(e); }

        document.body.addEventListener('touchleave', leave );
        function leave(e){ touchDefaults(e); }
链接地址: http://www.djcxy.com/p/95587.html

上一篇: touchend is not triggered

下一篇: Two pages grabbing click event on iPad