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;