File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/zoomimage/platforms/ios/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -176,16 +176,16 @@ open class ImageScrollView: UIScrollView {
176
176
177
177
@objc func updateForImage( _ size: CGSize ) {
178
178
imageSize = size
179
- contentSize = imageSize
179
+ // contentSize = imageSize
180
180
// setMaxMinZoomScalesForCurrentBounds()
181
181
// zoomScale = minimumZoomScale
182
182
183
183
switch initialOffset {
184
184
case . begining:
185
185
contentOffset = CGPoint . zero
186
186
case . center:
187
- let xOffset = contentSize . width < bounds. width ? 0 : ( contentSize . width - bounds. width) / 2
188
- let yOffset = contentSize . height < bounds. height ? 0 : ( contentSize . height - bounds. height) / 2
187
+ let xOffset = imageSize . width < bounds. width ? 0 : ( imageSize . width - bounds. width) / 2
188
+ let yOffset = imageSize . height < bounds. height ? 0 : ( imageSize . height - bounds. height) / 2
189
189
190
190
switch _zoomView? . contentMode {
191
191
case . scaleAspectFit:
You can’t perform that action at this time.
0 commit comments