Skip to content

Commit c2ef586

Browse files
authored
Merge pull request #79 from michaelhenry/improvements/dont-restrict-x
don't restrict the x component
2 parents 6462936 + d661e7d commit c2ef586

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
@@ -167,7 +167,7 @@ class ImageViewerController:UIViewController, UIGestureRecognizerDelegate {
167167
let translation: CGPoint = gestureRecognizer
168168
.translation(in: view)
169169
container.center = CGPoint(
170-
x: container.center.x,
170+
x: lastLocation.x + translation.x,
171171
y: lastLocation.y + translation.y)
172172
}
173173

0 commit comments

Comments
 (0)