修复动效页面抖动问题
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
var baba = document.querySelector('body');
|
var baba = document.querySelector('body');
|
||||||
baba.addEventListener('click', function (e) {
|
baba.addEventListener('click', function (e) {
|
||||||
|
$('body,html').css({"width":"100%","position": "relative", "overflow": "hidden" });
|
||||||
tianJia(e);
|
tianJia(e);
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -40,5 +41,6 @@ function move () {
|
|||||||
`
|
`
|
||||||
|
|
||||||
}
|
}
|
||||||
|
$('body,html').css({"width":"100%","position": "relative", "overflow": "auto" });
|
||||||
window.requestAnimationFrame(move);
|
window.requestAnimationFrame(move);
|
||||||
}
|
}
|
Reference in New Issue
Block a user