• Hello,
    the plugin works great if I wait a moment before clicking anything.
    But if you visit the page I am linking and then clicki any of the menu items on the right very quickly, it will just jump to the anchor point without any animation, it adds the #target to the URL and it doesn’t end up at the right height.
    Any idea why this is and how I can fix it?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author malihu

    (@malihu)

    Hi,

    This is by design. You actually click the link before the page is loaded (i.e. you’re clicking it while the page is still loading).

    The page can smooth scroll to the correct position only after all elements in the page are loaded. Otherwise, any element that expands page’s height (like images, docs, dynamic elements, elements with transitions etc.) would make scrolling go to the wrong position, as it would push all elements before it downwards.
    In addition, the plugin also needs to load its script file in order to work.

    I also just checked your page and could not click a link fast enough to reproduce this issue.

    • This reply was modified 5 years, 2 months ago by malihu.
    Thread Starter flizzywp

    (@flizzywp)

    Thank you for your answer.
    That’s cool then, I just wanted to make sure that I didn’t mess anything up myself because right before I noticed it I experimented with different plugins.
    Is there maybe a way to avoid that it appends the #anchor to the URL?

    Plugin Author malihu

    (@malihu)

    You’re welcome.

    There’s no way to avoid the hash (#) in the URL (in this case) because it’s a function of the browser.

    Thread Starter flizzywp

    (@flizzywp)

    Thank you for your time!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not working properly if I click fast enough after page load’ is closed to new replies.