mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: video gesture
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -770,10 +770,6 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
|
|
||||||
/// 锁定时禁用
|
/// 锁定时禁用
|
||||||
if (plPlayerController.controlsLock.value) return;
|
if (plPlayerController.controlsLock.value) return;
|
||||||
if (plPlayerController.enableSlideVolumeBrightness.not &&
|
|
||||||
plPlayerController.enableSlideFS.not) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
RenderBox renderBox =
|
RenderBox renderBox =
|
||||||
_playerKey.currentContext!.findRenderObject() as RenderBox;
|
_playerKey.currentContext!.findRenderObject() as RenderBox;
|
||||||
@@ -784,6 +780,11 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
_gestureType = 'horizontal';
|
_gestureType = 'horizontal';
|
||||||
} else if (cumulativeDelta.dy.abs() >
|
} else if (cumulativeDelta.dy.abs() >
|
||||||
3 * cumulativeDelta.dx.abs()) {
|
3 * cumulativeDelta.dx.abs()) {
|
||||||
|
if (plPlayerController.enableSlideVolumeBrightness.not &&
|
||||||
|
plPlayerController.enableSlideFS.not) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// _gestureType = 'vertical';
|
// _gestureType = 'vertical';
|
||||||
|
|
||||||
final double totalWidth = renderBox.size.width;
|
final double totalWidth = renderBox.size.width;
|
||||||
|
|||||||
Reference in New Issue
Block a user