We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug 调用自动播放后再触发退出,遮罩层虽然变透明,但没有隐藏。挡在最顶层。
为了实现自动播放。直接调用 $().viewer('show',true) 。之后点击关闭按钮或者遮罩退出,外层的 viewer-container 显示透明,但不隐藏,挡在最顶层,全页面无法点击。
To Reproduce Steps to reproduce the behavior:
Expected behavior 遮罩层能隐藏
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered:
//播放设置 let setting = storage('setting'); options.interval = setting && setting.auto_speed ? setting.auto_speed*1000 : 3000; //VIEWER pics.html(tpl).viewer(options).find('img').lazyload(); if (setting) { if (setting.auto_show) { pics.viewer('show',true); if (setting.auto_play) pics.viewer('play'); } else if (setting.auto_play) { pics.viewer('show',true).viewer('play'); } }
Sorry, something went wrong.
You should call the hide method with its first parameter set to true too:
hide
true
viewer.show(true); viewer.hide(true);
04d8d66
No branches or pull requests
Describe the bug
调用自动播放后再触发退出,遮罩层虽然变透明,但没有隐藏。挡在最顶层。
为了实现自动播放。直接调用 $().viewer('show',true) 。之后点击关闭按钮或者遮罩退出,外层的 viewer-container 显示透明,但不隐藏,挡在最顶层,全页面无法点击。
To Reproduce
Steps to reproduce the behavior:
Expected behavior
遮罩层能隐藏
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: