Skip to content
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

苹果手机iOS8.1系统,点击图片滑动没反应 #4

Open
zhcy091220 opened this issue Dec 12, 2017 · 5 comments
Open

苹果手机iOS8.1系统,点击图片滑动没反应 #4

zhcy091220 opened this issue Dec 12, 2017 · 5 comments

Comments

@zhcy091220
Copy link

引入该插件后,安卓手机没发现,苹果手机iOS11没问题,但是苹果手机iOS8.1系统,点击图片滑动没反应,不能滑动,不能缩放。。。

@congyingww
Copy link

请教一下,我ios图片预览,点击图片没反应,是怎么回事

@zhcy091220
Copy link
Author

@congyingww 你是iOS8吗?如果是iOS8可能是iOS的版本太低不支持,iOS9.2没问题,我用虚拟机试测试过。

@zuobaiquan
Copy link

zuobaiquan commented Jan 28, 2019

安卓4.4以下、ios8版本不兼容。和玉大师一起纠结了一下午。。

@yanghuiLu
Copy link
Owner

里面用了transform translate3d scale作为移动和放大用 ios只支持9.2以上,如果想要做兼容可以根据ios版本号,修改下里面的translateScale函数对低版本降级使用position,和width,height进行位移和放大

@zuobaiquan
Copy link

@yanghuiLu 并不是,需要对低版本的样式加前缀就好了。-webkit 需要都加下,translate3d 只是对iphone4不兼容。对ios8.0及低版本安卓手机,添加前缀即可。亲测有效。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants