You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
lockbot
locked as resolved and limited conversation to collaborators
May 1, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What problem does this feature solve?
项目内顶部固定,滚动的是一个指定的div元素,通过target指定该滚动元素后,由于
scrollToTop
方法中,currentScrollTop()
获得的总是window或body的scrollTop,所以缓动函数总是返回0,导致指定的滚动元素立即回到顶部。既然有这样一个外部接口提供target,或许对target也进行动画处理比较好。
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: