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
When I navigate to a new page with a URL containing an anchor (example.com/about/#team), the anchor loads at the very top edge of the browser (browser default behavior) and the value in edgeOffset does not take effect.
To compensate this, I've implemented the traditional CSS offset:
This fixes the issue explained above, but with one caveat. If navigate to this new page, the anchor is properly offset with this CSS declaration, but if I click any other anchors on that same page, ZenScroll adds edgeOffset to this CSS offset, thereby doubling the desired distance.
Obviously, this is a result of both the CSS delcaration and ZenScroll doing their assigned duties perfectly, but if there's a way to configure ZenScroll to offset the screen when navigating to an anchor from another page, that would be wonderful.
Thanks for any help!
The text was updated successfully, but these errors were encountered:
When I navigate to a new page with a URL containing an anchor (example.com/about/#team), the anchor loads at the very top edge of the browser (browser default behavior) and the value in edgeOffset does not take effect.
To compensate this, I've implemented the traditional CSS offset:
This fixes the issue explained above, but with one caveat. If navigate to this new page, the anchor is properly offset with this CSS declaration, but if I click any other anchors on that same page, ZenScroll adds edgeOffset to this CSS offset, thereby doubling the desired distance.
Obviously, this is a result of both the CSS delcaration and ZenScroll doing their assigned duties perfectly, but if there's a way to configure ZenScroll to offset the screen when navigating to an anchor from another page, that would be wonderful.
Thanks for any help!
The text was updated successfully, but these errors were encountered: