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 working great :
$('#working-target').animatescroll({ element: '.container-with-scroll', padding: 20 });
// This not working :
$('#target').animatescroll({ element: '.container-with-scroll', padding: 20 });
When using element option and the target id isn't a direct child of element.
Problem is here https://github.com/ramswaroop/animatescroll.js/blob/master/animatescroll.js#L162
The use of
this.parent()
causing the issue because the parent of target is<a>
not the.container-with-scroll
.The fix:
I can do a PR if needed.
The text was updated successfully, but these errors were encountered: