diff --git a/lib/pages/video/view.dart b/lib/pages/video/view.dart index d97983fe7..587cc9712 100644 --- a/lib/pages/video/view.dart +++ b/lib/pages/video/view.dart @@ -968,7 +968,7 @@ class _VideoDetailPageVState extends State double width = clampDouble(maxHeight / maxWidth * 1.08, 0.5, 0.7) * maxWidth; if (maxWidth >= 560) { - width = min(width, maxWidth - 280); + width = maxWidth - clampDouble(maxWidth - width, 280, 425); } final videoWidth = isFullScreen ? maxWidth : width; final double height = width * 9 / 16; diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index 06bedd055..564a93f2d 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -1110,7 +1110,7 @@ class _PLVideoPlayerState extends State final isMobile = Utils.isMobile; LongPressGestureRecognizer? _longPressRecognizer; LongPressGestureRecognizer get longPressRecognizer => - (_longPressRecognizer ??= LongPressGestureRecognizer()) + _longPressRecognizer ??= LongPressGestureRecognizer() ..onLongPressStart = ((_) => plPlayerController.setLongPressStatus(true)) ..onLongPressEnd = ((_) =>