From 92db2fc65a2415bab6f587e491e78086d9024a68 Mon Sep 17 00:00:00 2001 From: legolaserea <996779123@qq.com> Date: Fri, 22 Nov 2024 22:22:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(xgplayer):=20=E4=BF=AE=E5=A4=8D=E5=85=A8?= =?UTF-8?q?=E5=B1=8F=E9=80=80=E5=87=BA=E5=90=8E=E6=81=A2=E5=A4=8D=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=BB=9A=E5=8A=A8=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/xgplayer/src/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xgplayer/src/player.js b/packages/xgplayer/src/player.js index ead278f5..aede68e1 100644 --- a/packages/xgplayer/src/player.js +++ b/packages/xgplayer/src/player.js @@ -1803,7 +1803,7 @@ class Player extends MediaProxy { const { _fullScreenOffset, config } = this if (config.needFullscreenScroll) { // 保证页面scroll的情况下退出全屏 页面回到原位置 - window.scrollTo(_fullScreenOffset.left, _fullScreenOffset.top) + document.documentElement.scrollTo(_fullScreenOffset.left, _fullScreenOffset.top) Util.setTimeout( this, () => { this.fullscreen = false this._fullScreenOffset = null