Skip to content

Commit 02ab1df

Browse files
authored
don't restrict the x component
1 parent 41ce134 commit 02ab1df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ImageViewerController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class ImageViewerController:UIViewController, UIGestureRecognizerDelegate {
165165
let translation: CGPoint = gestureRecognizer
166166
.translation(in: view)
167167
container.center = CGPoint(
168-
x: container.center.x,
168+
x: lastLocation.x + translation.x,
169169
y: lastLocation.y + translation.y)
170170
}
171171

0 commit comments

Comments
 (0)