Skip to content

Commit

Permalink
mod: 移除横屏状态pip限制
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Feb 23, 2024
1 parent 823f49c commit 92eddbc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/pages/video/detail/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
final bool isPortrait =
MediaQuery.of(context).orientation == Orientation.portrait;

/// TODO 横屏全屏状态下误触pip
if (autoPiP && routePath.startsWith('/video') && isPortrait) {
if (autoPiP && routePath.startsWith('/video')) {
floating.enable(
aspectRatio: Rational(
videoDetailController.data.dash!.video!.first.width!,
Expand Down

0 comments on commit 92eddbc

Please sign in to comment.