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

H5端预览图片时,滑动到下一张并立刻关闭会出错 #1127

Closed
jin-yufeng opened this issue Dec 15, 2019 · 0 comments
Closed

H5端预览图片时,滑动到下一张并立刻关闭会出错 #1127

jin-yufeng opened this issue Dec 15, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jin-yufeng
Copy link

问题描述
H5 端,点击预览一张图片,然后在滑动到下一张图片时立刻点击关闭预览,会报错 index.umd.min.js:1 Uncaught TypeError: Cannot read property 'offsetWidth' of undefined

复现步骤
错误
一定要是切换图片后立即点击关闭预览,否则不报错

预期结果
不出错

实际结果
index.umd.min.js:1 Uncaught TypeError: Cannot read property 'offsetWidth' of undefined
at VueComponent._updateViewport (index.umd.min.js:1)
at VueComponent._animateFrameFuncProto (index.umd.min.js:1)
错误

系统信息:

  • 发行平台:H5
  • HBuilderX版本:2.4.6.20191210
  • 设备信息 Google Chrome 77.0.3865.120

附件
一个简单的 demotest.zip

@zhetengbiji zhetengbiji self-assigned this Dec 16, 2019
@zhetengbiji zhetengbiji added the bug Something isn't working label Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants