mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
Revert "feat: no _showControlsIfNeeded() when slipping"
This reverts commit 551be3dc6a.
This commit is contained in:
@@ -976,6 +976,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
final dy = cumulativeDelta.dy.abs();
|
final dy = cumulativeDelta.dy.abs();
|
||||||
if (dx > 3 * dy) {
|
if (dx > 3 * dy) {
|
||||||
_gestureType = GestureType.horizontal;
|
_gestureType = GestureType.horizontal;
|
||||||
|
_showControlsIfNeeded();
|
||||||
} else if (dy > 3 * dx) {
|
} else if (dy > 3 * dx) {
|
||||||
if (!plPlayerController.enableSlideVolumeBrightness &&
|
if (!plPlayerController.enableSlideVolumeBrightness &&
|
||||||
!plPlayerController.enableSlideFS) {
|
!plPlayerController.enableSlideFS) {
|
||||||
@@ -1295,6 +1296,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
final dy = pan.dy.abs();
|
final dy = pan.dy.abs();
|
||||||
if (dx > 3 * dy) {
|
if (dx > 3 * dy) {
|
||||||
_gestureType = GestureType.horizontal;
|
_gestureType = GestureType.horizontal;
|
||||||
|
_showControlsIfNeeded();
|
||||||
} else if (dy > 3 * dx) {
|
} else if (dy > 3 * dx) {
|
||||||
_gestureType = GestureType.right;
|
_gestureType = GestureType.right;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user