fix: 🐛 优化买家端首页点击回到顶部的判断

master
Yer 2023-08-09 15:32:44 +08:00
parent e138275c0a
commit 00a56473f1
1 changed files with 4 additions and 2 deletions

View File

@ -45,11 +45,13 @@ export default {
}
},
mounted() {
const vm = this
//
window.addEventListener('wheel', function() {
if (this.isScrolling) {
if (vm.isScrolling) {
// isScrolling false
window.cancelAnimationFrame(this.timeoutId);
window.cancelAnimationFrame(vm.timeoutId);
vm.isScrolling = false;
}
});