• Resolved redbarndesign

    (@redbarndesign)


    Hello,
    Very glad i stumbled onto your plugin. I have been unsuccessfully fighting a buggy Elementor/OceanWP page scroll issue. Your plugin fixed the scroll and now it scrolls smoothly in all browsers.

    That said, I am having a similar problem to this issue…
    https://www.ads-software.com/support/topic/page-scroll-to-id-offset-not-working-right/

    The first click scrolls down to the area, but does not include the 70px offset.
    However, ever other anchor link does include the 70px offset after scrolling down.
    I saw the issue regarding lazy load, so I have scrolled through the page manually to load everything, then did a test again. But the first click still does not include the 70px offset.

    Any ideas?
    Rick

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

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

    (@malihu)

    Hello,

    This happens because of the way your theme handles its sticky top header. What happens is the header becomes shorter when you scroll down a bit. When this happens, every element below the header (i.e. the rest of the page) “moves” up, meaning every element’s top position is different than it was when the page was at the top (not scrolled) and the header was longer.

    All this happens while the page is scrolling! That’s why you land on a different position (i.e. the correct one) when you’ve already scrolled the page.

    In short, the plugin starts scrolling to the target position but by the time it scrolls there, the target’s position is changed. The second time you click the link, the plugin scrolls again to target’s “new” correct position.

    Hope all this makes sense cause it’s a bit technical ??

    You can solve this in 2 ways, so choose the one that works best for you:

    1)Go to plugin settings and enable “Verify target position and readjust scrolling (if necessary), after scrolling animation is complete” option. Save changes and test your links.

    2)Add the following to your theme’s/additional CSS:

    .she-header + .elementor-sticky__spacer {
        position: relative;
        min-height: 101px;
    }

    and test your links.

    Let me know

    Thread Starter redbarndesign

    (@redbarndesign)

    Nailed it, Malihu! This has been a challenging issue and your plugin along with support was the only fix I could find. Thank You! Rick

    Plugin Author malihu

    (@malihu)

    You’re welcome ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘First click does not include 70px offset’ is closed to new replies.