mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
@@ -968,7 +968,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
|||||||
double width =
|
double width =
|
||||||
clampDouble(maxHeight / maxWidth * 1.08, 0.5, 0.7) * maxWidth;
|
clampDouble(maxHeight / maxWidth * 1.08, 0.5, 0.7) * maxWidth;
|
||||||
if (maxWidth >= 560) {
|
if (maxWidth >= 560) {
|
||||||
width = min(width, maxWidth - 280);
|
width = maxWidth - clampDouble(maxWidth - width, 280, 425);
|
||||||
}
|
}
|
||||||
final videoWidth = isFullScreen ? maxWidth : width;
|
final videoWidth = isFullScreen ? maxWidth : width;
|
||||||
final double height = width * 9 / 16;
|
final double height = width * 9 / 16;
|
||||||
|
|||||||
@@ -1110,7 +1110,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
final isMobile = Utils.isMobile;
|
final isMobile = Utils.isMobile;
|
||||||
LongPressGestureRecognizer? _longPressRecognizer;
|
LongPressGestureRecognizer? _longPressRecognizer;
|
||||||
LongPressGestureRecognizer get longPressRecognizer =>
|
LongPressGestureRecognizer get longPressRecognizer =>
|
||||||
(_longPressRecognizer ??= LongPressGestureRecognizer())
|
_longPressRecognizer ??= LongPressGestureRecognizer()
|
||||||
..onLongPressStart = ((_) =>
|
..onLongPressStart = ((_) =>
|
||||||
plPlayerController.setLongPressStatus(true))
|
plPlayerController.setLongPressStatus(true))
|
||||||
..onLongPressEnd = ((_) =>
|
..onLongPressEnd = ((_) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user