提交 74754f4e 编写于 作者: Q qiang

fix: 增加窗口变化事件过滤时间间隔

上级 d21e1b28
......@@ -5,6 +5,7 @@ var tasks = []
function onResize () {
tasks.push(setTimeout(() => {
tasks.forEach(task => clearTimeout(task))
tasks.length = 0
const {
invokeCallbackHandler: invoke
......@@ -29,7 +30,7 @@ function onResize () {
}
})
})
}, 10))
}, 20))
}
/**
* 监听窗口大小变化
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册