-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
超过屏幕高度的网络图片,双指缩放然后复原大小后,手势下拉无法关闭 #201
Comments
我查下 |
问题在缩放图片后, scrollView.contentOffset.y > 0: 代码问题如下: // 向下滑动,如果图片顶部超出可视区域,不响应手势 |
scrollViewDidZoom中,只计算了imageView.center = computeImageLayoutCenter(in: scrollView), 是否也需要添加判断图片frame, 如果复原了,也得把scrollView.contentOffset复原 computeImageLayoutCenter中打印如下: |
好的,今天好忙,我晚些时候看 |
我提交了一个pr |
收到 |
在恢复原比例时,把 |
我刚刚看了微信朋友圈长图下拉,它不用等滑动停下就可以下拉关闭,这个细节应该是特别优化处理了,也许我也可以实现一下 |
那在手势处理那就要改变一下判断,不应该简单的由contentOffset.y 来判断,YBImageBrowser的处理如下,可以借鉴一下:
|
demo中Kingfisher 加载示例中 KingfisherImageViewController:
修改图片源地址为长图: let url = URL(string: "https://ewow-community.epal.gg/data/IdfF31E0/community/1614666157363137079773003777.png")
双指放大图片
缩小图片到原始状态
下拉, 无法关闭!!!
The text was updated successfully, but these errors were encountered: