From 7636eb17539c0b2f859ea25cb4c2163f56f0d719 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sat, 5 Aug 2023 08:43:34 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E4=BF=AE=E6=94=B9=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E5=85=A8=E5=B1=8F=E6=89=8B=E5=8A=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugin/pl_player/view.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index f359b5c5..aa3349e9 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -504,12 +504,14 @@ class _PLVideoPlayerState extends State final double dy = details.delta.dy; const double threshold = 7.0; // 滑动阈值 if (dy > _distance && dy > threshold) { - if (!_.isFullScreen.value) { + if (_.isFullScreen.value) { + // 下滑退出全屏 await triggerFullScreen(); } _distance = 0.0; } else if (dy < _distance && dy < -threshold) { - if (_.isFullScreen.value) { + if (!_.isFullScreen.value) { + // 上滑进入全屏 await triggerFullScreen(); } _distance = 0.0;