mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
More minor fixes
This commit is contained in:
parent
9a15e3f5f6
commit
73d2366916
3 changed files with 5 additions and 7 deletions
|
|
@ -211,8 +211,6 @@ class _DriftSlideshowPageState extends ConsumerState<DriftSlideshowPage>
|
|||
return;
|
||||
}
|
||||
|
||||
_pageController.jumpToPage(index);
|
||||
|
||||
setState(() => _fadingSlideIndex = prevIndex);
|
||||
|
||||
unawaited(
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ class SlideshowController extends ChangeNotifier {
|
|||
_paused = false;
|
||||
notifyListeners();
|
||||
|
||||
if (delegate.videoProgressOf(_currentIndex) != null && delegate.isVideoCompleted(_currentIndex)) {
|
||||
if (delegate.isVideoCompleted(_currentIndex)) {
|
||||
goToNextSlide();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,15 +53,15 @@ class SlideshowSlide extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final Widget content = asset.isImage || frozen
|
||||
? AnimatedBuilder(
|
||||
animation: zoom,
|
||||
builder: (context, _) => PhotoView(
|
||||
? ScaleTransition(
|
||||
scale: zoom.drive(Tween(begin: 1.0, end: 1.0 + _kenBurnsZoomMultiplier)),
|
||||
child: PhotoView(
|
||||
imageProvider: getFullImageProvider(asset, size: context.sizeData),
|
||||
index: index,
|
||||
disableScaleGestures: true,
|
||||
gaplessPlayback: true,
|
||||
filterQuality: FilterQuality.high,
|
||||
initialScale: _scale * (1.0 + zoom.value * _kenBurnsZoomMultiplier),
|
||||
initialScale: _scale,
|
||||
controller: PhotoViewController(),
|
||||
onTapUp: (_, _, _) => onTapUp(),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue