Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): pinch to zoom + move acceleration (#18569)

toamz40e7b58ba426
diff --git a/mobile/lib/widgets/photo_view/src/core/photo_view_core.dart b/mobile/lib/widgets/photo_view/src/core/photo_view_core.dart
index 0a5cae0fa0..80d7427d82 100644
--- a/mobile/lib/widgets/photo_view/src/core/photo_view_core.dart
+++ b/mobile/lib/widgets/photo_view/src/core/photo_view_core.dart
@@ -169,7 +169,7 @@ class PhotoViewCoreState extends State<PhotoViewCore>
scale: newScale,
position: widget.enablePanAlways
? delta
- : clampPosition(position: delta * details.scale),
+ : clampPosition(position: delta, scale: details.scale),
rotation:
widget.enableRotation ? _rotationBefore! + details.rotation : null,
rotationFocusPoint: widget.enableRotation ? details.focalPoint : null,