kswedberg / jquery-smooth-scroll

Automatically make same-page links scroll smoothly
MIT License
1.97k stars 427 forks source link

Scrolling a fixed element #84

Closed koenpunt closed 8 years ago

koenpunt commented 8 years ago

I tried to setup smooth scrolling in a fixed modal overlay using the utility method $.smoothScroll, but for some reason it can't figure out (consistently) where the scrollTarget is positioned, or how to scroll to it.

Is this a known issue with fixed element scrolling?

kswedberg commented 8 years ago

Interesting. No, it's not an issue I was aware of, so thanks for reporting it! Would you mind pointing me to a URL that exhibits this inconsistent behavior?

koenpunt commented 8 years ago

Currently not publicly visible, let me see if I can setup a demo page

koenpunt commented 8 years ago

I'd setup a test page (https://jsfiddle.net/koenpunt/jpsb4np8/), but there I don't have the issue, so I'll check if there's something I missed in this test setup (or in my actual setup)

kswedberg commented 8 years ago

ok, thanks a lot!

kswedberg commented 8 years ago

Any luck solving (or replicating) the problem?

kswedberg commented 8 years ago

closing due to inactivity.