mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: video minScale
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1131,6 +1131,8 @@ class PlPlayerController {
|
||||
}
|
||||
}
|
||||
|
||||
bool? isTriple;
|
||||
|
||||
/// 隐藏控制条
|
||||
void hideTaskControls() {
|
||||
if (_timer != null) {
|
||||
@@ -1138,7 +1140,7 @@ class PlPlayerController {
|
||||
}
|
||||
Duration waitingTime = Duration(seconds: enableLongShowControl ? 30 : 3);
|
||||
_timer = Timer(waitingTime, () {
|
||||
if (!isSliderMoving.value) {
|
||||
if (!isSliderMoving.value && isTriple != true) {
|
||||
controls = false;
|
||||
}
|
||||
_timer = null;
|
||||
|
||||
@@ -701,6 +701,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
scaleEnabled: !plPlayerController.controlsLock.value, // 启用缩放
|
||||
minScale: 0.75,
|
||||
maxScale: 2.0,
|
||||
boundaryMargin: const EdgeInsets.all(double.infinity),
|
||||
panAxis: PanAxis.aligned,
|
||||
onInteractionStart: (ScaleStartDetails details) {
|
||||
if (plPlayerController.controlsLock.value) return;
|
||||
|
||||
Reference in New Issue
Block a user