修复动效页面抖动问题

This commit is contained in:
Dragon
2023-09-25 16:43:49 +08:00
parent a9cd488165
commit 92b82aef07

View File

@@ -1,5 +1,6 @@
var baba = document.querySelector('body');
baba.addEventListener('click', function (e) {
$('body,html').css({"width":"100%","position": "relative", "overflow": "hidden" });
tianJia(e);
})
@@ -40,5 +41,6 @@ function move () {
`
}
$('body,html').css({"width":"100%","position": "relative", "overflow": "auto" });
window.requestAnimationFrame(move);
}