mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: video page v
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -150,6 +150,9 @@ class VideoDetailController extends GetxController
|
||||
? 'horizontal'
|
||||
: 'vertical'
|
||||
: 'horizontal';
|
||||
if (GStorage.collapsibleVideoPage.not || scrollCtr.hasClients.not) {
|
||||
return;
|
||||
}
|
||||
if (_direction != direction) {
|
||||
_direction = direction;
|
||||
double videoHeight =
|
||||
|
||||
@@ -1138,16 +1138,23 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
final double totalWidth = renderBox.size.width;
|
||||
final double tapPosition = details.localPosition.dx;
|
||||
final double sectionWidth = totalWidth / 3;
|
||||
late String gestureType;
|
||||
if (tapPosition < sectionWidth) {
|
||||
// 左边区域
|
||||
_gestureType = 'left';
|
||||
gestureType = 'left';
|
||||
} else if (tapPosition < sectionWidth * 2) {
|
||||
// 全屏
|
||||
_gestureType = 'center';
|
||||
gestureType = 'center';
|
||||
} else {
|
||||
// 右边区域
|
||||
_gestureType = 'right';
|
||||
gestureType = 'right';
|
||||
}
|
||||
|
||||
if (_gestureType != null && _gestureType != gestureType) {
|
||||
return;
|
||||
}
|
||||
_gestureType = gestureType;
|
||||
|
||||
if (_gestureType == 'left') {
|
||||
// 左边区域 👈
|
||||
final double level = renderBox.size.height * 3;
|
||||
|
||||
Reference in New Issue
Block a user