From 1a4a4ede36bfd89ac02b765f43d18291ec102f86 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 20 Apr 2020 12:19:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=202.6.14-alpha=E5=BC=95=E8=B5=B7=E7=9A=84?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E5=A4=B1=E7=84=A6=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E5=88=B0=E9=A1=B6=E9=83=A8=E7=9A=84Bug=20ask?= =?UTF-8?q?Id:=2094065?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/mixins/keyboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/view/mixins/keyboard.js b/src/core/view/mixins/keyboard.js index dc248592c..8aa7f6956 100644 --- a/src/core/view/mixins/keyboard.js +++ b/src/core/view/mixins/keyboard.js @@ -108,8 +108,8 @@ export default { document.removeEventListener('click', iosHideKeyboard, false) this.resetSoftinputNavBar() // 修复ios端显示与点击位置错位的Bug by:wyq - if (document.body.scrollIntoView) { - document.body.scrollIntoView() + if (String(navigator.vendor).indexOf('Apple') === 0) { + document.documentElement.scrollTo(document.documentElement.scrollLeft, document.documentElement.scrollTop) } } } -- GitLab