mirror of
https://github.com/immich-app/immich.git
synced 2026-01-16 23:11:47 -08:00
fix: prevent image to change size when interacting
This commit is contained in:
@@ -65,7 +65,9 @@ mixin PhotoViewControllerDelegate on State<PhotoViewCore> {
|
||||
|
||||
double get scale {
|
||||
// for figuring out initial scale
|
||||
final needsRecalc = markNeedsScaleRecalc && !scaleStateController.scaleState.isScaleStateZooming;
|
||||
final isZooming = scaleStateController.scaleState.isScaleStateZooming;
|
||||
final isUserInteracting = controller.position != Offset.zero;
|
||||
final needsRecalc = markNeedsScaleRecalc && !isZooming && !isUserInteracting;
|
||||
|
||||
final scaleExistsOnController = controller.scale != null;
|
||||
if (needsRecalc || !scaleExistsOnController) {
|
||||
|
||||
Reference in New Issue
Block a user