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
如题 ~
pause只是清理了this._LSN.autoPlay上的当前计时器,如果执行pause的时候,代码已经进入了slideTo环节,其实清理_LSN.autoPlay已经没有用了。 slideTo执行到最后会自动创建新的计时器进入下一轮播放。
验证: 随便找个demo, 开启自动播放模式,因为duration默认是2000。就在初始化iSlider代码后面加上
setTimeout(()=>{ islider.pause() }, 2000)
你会发现是暂停不了的。 (如果不能复现的话,可以改个延迟执行时间,多试试很容易重现)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如题 ~
pause只是清理了this._LSN.autoPlay上的当前计时器,如果执行pause的时候,代码已经进入了slideTo环节,其实清理_LSN.autoPlay已经没有用了。 slideTo执行到最后会自动创建新的计时器进入下一轮播放。
验证:
随便找个demo, 开启自动播放模式,因为duration默认是2000。就在初始化iSlider代码后面加上
你会发现是暂停不了的。 (如果不能复现的话,可以改个延迟执行时间,多试试很容易重现)
The text was updated successfully, but these errors were encountered: