您的位置:首页 > 其它

iScroll内部textarea滑动不了bug

2015-08-13 16:30 363 查看
原文链接:https://www.geek-share.com/detail/2650454600.html


把document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);改为
//阻止默认行为
    $(document).on("touchstart touchmove mousedown mousemove",function(event){
        var tag = $(event.target).parents()[0].tagName;
        var thistag = event.target.tagName;
        if ( tag != "A" && tag != "INPUT" && tag != "TEXTAREA" && tag != "SELECT" && thistag != "A" && thistag != "INPUT" && thistag != "TEXTAREA" && thistag != "SELECT"  )
        {
            event.preventDefault();
        }
    })

转载于:https://www.cnblogs.com/anyaran/p/4727697.html

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: