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 长图显示不全 #532

Closed
ghost opened this issue Dec 20, 2020 · 0 comments · Fixed by #533
Closed

ImagePreview 长图显示不全 #532

ghost opened this issue Dec 20, 2020 · 0 comments · Fixed by #533

Comments

@ghost
Copy link

ghost commented Dec 20, 2020

Description

图片预览组件,如果传入一张长图,预览时只显示一部分,并无法滑动。

Solution

目前我们环境通过覆盖样式,实现长图的滑动效果:

.za-image-preview__item {
  overflow: auto;
}
.za-pinch-zoom {
  position: relative;
  touch-action: auto;
  min-height: 100%;
}

Environment

  • zarm version:2.6.1
  • react version:16.14.0
  • system version:Android 10,iOS 14
  • browser version: 微信、Safari、Edge
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

Successfully merging a pull request may close this issue.

0 participants