mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
fix(mobile): pinch to zoom + move acceleration (#18569)
Fix pinch to zoom + move acceleration
This commit is contained in:
parent
4743a085f1
commit
40e7b58ba4
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ class PhotoViewCoreState extends State<PhotoViewCore>
|
||||||
scale: newScale,
|
scale: newScale,
|
||||||
position: widget.enablePanAlways
|
position: widget.enablePanAlways
|
||||||
? delta
|
? delta
|
||||||
: clampPosition(position: delta * details.scale),
|
: clampPosition(position: delta, scale: details.scale),
|
||||||
rotation:
|
rotation:
|
||||||
widget.enableRotation ? _rotationBefore! + details.rotation : null,
|
widget.enableRotation ? _rotationBefore! + details.rotation : null,
|
||||||
rotationFocusPoint: widget.enableRotation ? details.focalPoint : null,
|
rotationFocusPoint: widget.enableRotation ? details.focalPoint : null,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue