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
Have you reproduced this in other browsers?: [Yes/No]
Have you checked for updates?: [Yes/No]
Have you checked for similar open issues?: [Yes/No]
Please remember that this is an issue tracker, support requests should be posted on StackOverflow - see CONTRIBUTING.md
Please describe your issue in as much detail as possible:
Describe what you expected should happen and what did happen.
animating the scrollTop using scrollTop property only work if the scrollTop position is at 0px. So if the scrollTop position have changed from 0, it can only animate back to 0. Aside from that it wont work.
Example:
// html scrollTop position is at 0px
$("html").velocity({scrollTop: 500}, {duration: 2000}) // it will work
// html scrollTop position is at 500px
$("html").velocity({scrollTop: 700}, {duration: 2000}) // it wont work
//html scrollTop position is at 500px
$("html").velocity({scrollTop: 0}, {duration: 2000}) // it will work
Your system information
Checklist
Please describe your issue in as much detail as possible:
Describe what you expected should happen and what did happen.
animating the scrollTop using scrollTop property only work if the scrollTop position is at 0px. So if the scrollTop position have changed from 0, it can only animate back to 0. Aside from that it wont work.
Example:
// html scrollTop position is at 0px
$("html").velocity({scrollTop: 500}, {duration: 2000}) // it will work
// html scrollTop position is at 500px
$("html").velocity({scrollTop: 700}, {duration: 2000}) // it wont work
//html scrollTop position is at 500px
$("html").velocity({scrollTop: 0}, {duration: 2000}) // it will work
Steps for reproducing this issue (code):
JSFiddle example showing issue in action (code):
The text was updated successfully, but these errors were encountered: