Commit a2e7e2b1 by zujiaozhang

'处理下拉时整个页面会被拉下来问题'

parent bb3fa512
......@@ -43,9 +43,13 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
chat.talkRelation();
chat.getWechatTicket();
chat.getAttention();
document.body.addEventListener('touchmove' , function(e){
var content = document.querySelector('#content')
document.body.addEventListener('touchmove', function (e) {
e.preventDefault();
})
}, {passive: false});
content.addEventListener('touchmove', function (e) {
e.preventDefault();
}, {passive: false});
//1.获取到列表的dom,刷新显示部分的dom,列表父容器的dom
let container = document.querySelector('.chat_list');
let refreshText = document.querySelector('.refreshText');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment