Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] back button scrolling not working properly

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #157142
    chogan
    Participant

    Here’s the website.. http://www.keymind.com

    Here’s the situation. When you click on a link up top in the nav bar, it scrolls to the appropriate location of the page. That works fine.. in addition to that, it’s supposed to scroll up to any location as well. Problem is when you’re on Contact, it won’t scroll back up on click of another nav link before it.

    So let’s say you have: Home About Portfolio Contact

    You click on About, it scrolls to About. You click on Contact, it scroll down to Contact. But from there if you click on Portfolio or About..it stays on Contact.

    Any idea what we’re missing? Btw, this problem is not a representation of the developers who work for this company. I’m the internal guy and they’re well aware I’m not a javascript wizard.

    #157144
    chogan
    Participant

    never mind, copied and pasted https://css-tricks.com/snippets/jquery/smooth-scrolling/ to a new js file and it works. Now for some reason Chrome is a bit laggy with the scrolling but all other browsers seem fine.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.