From 74754f4ef125f4ff475ab94732817606f99eb5d2 Mon Sep 17 00:00:00 2001 From: qiang Date: Sat, 26 Jan 2019 14:11:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E5=8F=98=E5=8C=96=E4=BA=8B=E4=BB=B6=E8=BF=87=E6=BB=A4=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=97=B4=E9=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/h5/service/api/window.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platforms/h5/service/api/window.js b/src/platforms/h5/service/api/window.js index 9112a7e4be..c779fea641 100644 --- a/src/platforms/h5/service/api/window.js +++ b/src/platforms/h5/service/api/window.js @@ -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)) } /** * 监听窗口大小变化 -- GitLab