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

imagePreview组件在ios上预览时,无法滚动 #132

Open
halaproliu opened this issue Jun 20, 2023 · 12 comments
Open

imagePreview组件在ios上预览时,无法滚动 #132

halaproliu opened this issue Jun 20, 2023 · 12 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@halaproliu
Copy link

imagePreview组件在ios app的webview和safari浏览器内预览时,无法滚动,找了下原因发现是preview-image-wrap元素上的onTouchmove事件导致的,请问目前有解决方案吗。

@ChelesteWang
Copy link
Collaborator

Can you try to give a reproducible demo ,This access allows us to troubleshoot problems together more efficiently

@halaproliu
Copy link
Author

it can not use touchmove to move, because i need to use it in mobile

@halaproliu
Copy link
Author

请问目前有后续进展吗

@ChelesteWang ChelesteWang added the help wanted Extra attention is needed label Jul 3, 2023
@TinaPeach
Copy link
Collaborator

同学,你指的应该是长图在预览大图时无法滚动?我们复现了这个问题并提mr修复了,见 #137 这周会发新包哈~

@halaproliu
Copy link
Author

同学,你指的应该是长图在预览大图时无法滚动?我们复现了这个问题并提mr修复了,见 #137 这周会发新包哈~

请问具体发布时间是什么时候呢?

@TinaPeach
Copy link
Collaborator

@halaproliu 同学,新版本已经发布~ @arco-design/[email protected]

@halaproliu
Copy link
Author

@halaproliu 同学,新版本已经发布~ @arco-design/[email protected]

我看了下没有解决我的问题,我这边是预览的时候长图,在ios无法滑动。我调试了下,移除preview-image-wrap上的touchmove事件就可以了。

@TinaPeach
Copy link
Collaborator

@halaproliu 无法滑动的是打开大图之前 在文档流中的图,还是打开大图之后全屏的图呀?

@halaproliu
Copy link
Author

打开后,在非文档流中,挂载在body的

@TinaPeach
Copy link
Collaborator

@halaproliu 同学,按照你给的demo代码尝试,你的问题还是没有复现。长图的滑动是通过transform手动实现的,前置会获取图片的边界(rect)。你的不可滑动可能是因为设置了某些特殊样式,识别图片边界时不对。你可以检查下,打开大图后,标签的rect与标签父元素的rect的并集,是否是完整的图片区域。

@adaex adaex self-assigned this Jul 14, 2023
@halaproliu
Copy link
Author

@TinaPeach 也许提供的demo不对吧,我查看过,是因为touchmove事件的原因,而我本身没有添加这个事件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants