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
Codepen in Foundation 6.5.1: https://codepen.io/anon/pen/QJPpbQ
Note that there is no offset and the scroll does take 500ms - instead of 1ms.
Also the scroll stops before actually reaching the element.
Your Environment
Foundation version(s) used: 6.5.1
The text was updated successfully, but these errors were encountered:
What should happen?
I should be able to set smoothScroll options via data attributes.
data-offset="100" data-animation-duration="1"
What happens instead?
These attributes are ignored
Possible Solution
I believe problem is in
_handleLinkClick
method https://github.com/zurb/foundation-sites/blob/develop/js/foundation.smoothScroll.js#L60this
is always undefined. Sothis.options
is also undefined. So only default options will ever be used.Test Case and/or Steps to Reproduce (for bugs)
Codepen in Foundation 6.5.1: https://codepen.io/anon/pen/QJPpbQ
Note that there is no offset and the scroll does take 500ms - instead of 1ms.
Also the scroll stops before actually reaching the element.
Your Environment
The text was updated successfully, but these errors were encountered: