Commit 87f62eef by 林翔

lx

parent fdaaf161
Showing with 8 additions and 2 deletions
...@@ -44,7 +44,10 @@ var xinhot = { ...@@ -44,7 +44,10 @@ var xinhot = {
// var top = $(".product-mask-content").offset().top; //获取某个元素距顶部的距离 // var top = $(".product-mask-content").offset().top; //获取某个元素距顶部的距离
// $("body,html").animate({scrollTop:(top-50)+"px"},500); // $("body,html").animate({scrollTop:(top-50)+"px"},500);
$("body,html").css({"overflow":"hidden"}); $("body,html").css({"overflow":"hidden"});
$("body,html").bind("touchmove",function(e){ $(".mask").addEventListener("touchmove",function(e){
e.prevenDefault();
});
$(".mask").bind("touchmove",function(e){
e.prevenDefault(); e.prevenDefault();
}); });
...@@ -77,7 +80,10 @@ var xinhot = { ...@@ -77,7 +80,10 @@ var xinhot = {
// var top = $(".contact-mask-content").offset().top; //获取某个元素距顶部的距离 // var top = $(".contact-mask-content").offset().top; //获取某个元素距顶部的距离
// $("body,html").animate({scrollTop:(top-50)+"px"},500); // $("body,html").animate({scrollTop:(top-50)+"px"},500);
$("body,html").css({"overflow":"hidden"}); $("body,html").css({"overflow":"hidden"});
$("body,html").bind("touchmove",function(e){ $(".mask").addEventListener("touchmove",function(e){
e.prevenDefault();
});
$(".mask").bind("touchmove",function(e){
e.prevenDefault(); e.prevenDefault();
}); });
......
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 sign in to comment