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
Element.scrollTop接受的是一个整数,如果赋值带有小数,会截取整数部分,如下图
造成卡顿的原因: 当speed是一个比较小的值时,nextTop得出的结果与top绝对值小于1,此时设置rootElement.scrollTop后实际没变化,极端情况会在同一个值循环,导致页面卡顿。
另外,同一个元素多次触发pageScrollTo方法时是否应该先清除上一次的requestAnimationFrame?
The text was updated successfully, but these errors were encountered:
fix: 修复pageScrollTo方法在h5下可能造成卡顿问题(raxjs#285)
1c99341
No branches or pull requests
Element.scrollTop接受的是一个整数,如果赋值带有小数,会截取整数部分,如下图
造成卡顿的原因:
当speed是一个比较小的值时,nextTop得出的结果与top绝对值小于1,此时设置rootElement.scrollTop后实际没变化,极端情况会在同一个值循环,导致页面卡顿。
另外,同一个元素多次触发pageScrollTo方法时是否应该先清除上一次的requestAnimationFrame?
The text was updated successfully, but these errors were encountered: