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

mip-img 支持弹出图片手势缩放 #702

Open
clark-t opened this issue Sep 25, 2019 · 1 comment
Open

mip-img 支持弹出图片手势缩放 #702

clark-t opened this issue Sep 25, 2019 · 1 comment
Assignees
Labels
discussion enhancement New feature or request

Comments

@clark-t
Copy link
Contributor

clark-t commented Sep 25, 2019

要解决什么问题
目前 mip-img 的图片在弹出之后,没办法手势缩放,这块需求还挺多的,希望能够安排上

描述一下你理想中的解决方案
之前没加上主要是考虑到 mip.js 增加缩放之后体积会变大很多(比如需要引入 iscroll )所以没有开发,但我觉得这个由于是需要用户点击交互之后才需要展现的功能,我觉得应该可以把这部分代码异步加载,包括 popup 也是,这样是不是就把体积问题解决了?

描述你的备选方案
备选方案是新增一个官方组件比如 mip-zoom-img 之类?

补充信息
补充其他信息,如截图等

@clark-t
Copy link
Contributor Author

clark-t commented Sep 25, 2019

之前有提到给每个图片都包 iscroll 可能会造成页面内存爆炸,这个倒比较好解决,就只对当前 popup 的图片包 iscroll 即可,切换至下一张图片时,把上一个 iscroll 销毁并给新图片包 iscroll

@clark-t clark-t added discussion enhancement New feature or request labels Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants