From bc2dbc59ceb32a0ae1e9fec5e88522f4b039c0ee Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Mon, 10 Feb 2025 18:51:26 +0800 Subject: [PATCH] mod: video scale set Signed-off-by: bggRGjQaUbCoE --- lib/plugin/pl_player/view.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index c81b18662..304b67c05 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -704,6 +704,8 @@ class _PLVideoPlayerState extends State }, onInteractionUpdate: (ScaleUpdateDetails details) { + plPlayerController.videoScale.value = + transformationController.value.row0.x; if (interacting || _initialFocalPoint == Offset.zero) return; Offset cumulativeDelta = details.localFocalPoint - _initialFocalPoint; @@ -817,8 +819,6 @@ class _PLVideoPlayerState extends State } }, onInteractionEnd: (ScaleEndDetails details) { - plPlayerController.videoScale.value = - transformationController.value.row0.x; if (plPlayerController.showSeekPreview) { plPlayerController.showPreview.value = false; }