feat: no _showControlsIfNeeded() when slipping

滑动快进快退不唤出控件
This commit is contained in:
систем
2026-04-10 20:44:09 +08:00
parent db30aa8041
commit 551be3dc6a

View File

@@ -976,7 +976,6 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
final dy = cumulativeDelta.dy.abs();
if (dx > 3 * dy) {
_gestureType = GestureType.horizontal;
_showControlsIfNeeded();
} else if (dy > 3 * dx) {
if (!plPlayerController.enableSlideVolumeBrightness &&
!plPlayerController.enableSlideFS) {
@@ -1296,7 +1295,6 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
final dy = pan.dy.abs();
if (dx > 3 * dy) {
_gestureType = GestureType.horizontal;
_showControlsIfNeeded();
} else if (dy > 3 * dx) {
_gestureType = GestureType.right;
}