mirror of
https://github.com/immich-app/immich.git
synced 2026-04-24 18:10:01 -04:00
fix(mobile): use actual child size for live photo
This commit is contained in:
parent
276b42d3ff
commit
48b3b3caba
@ -319,9 +319,11 @@ class _AssetPageState extends ConsumerState<AssetPage> {
|
||||
|
||||
return PhotoView.customChild(
|
||||
key: Key(asset.heroTag),
|
||||
childSize: asset.width != null && asset.height != null
|
||||
? Size(asset.width!.toDouble(), asset.height!.toDouble())
|
||||
: null,
|
||||
childSize:
|
||||
_viewController?.scaleBoundaries?.childSize ??
|
||||
(asset.width != null && asset.height != null
|
||||
? Size(asset.width!.toDouble(), asset.height!.toDouble())
|
||||
: null),
|
||||
onDragStart: _onDragStart,
|
||||
onDragUpdate: _onDragUpdate,
|
||||
onDragEnd: _onDragEnd,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user