Black Friday sale! Get 25% off WPSP Pro! Discount automatically applied at checkout.

[Support request] AJAX Pagination – scroll position off

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support AJAX Pagination – scroll position off

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #20982
    rly
    Participant

    Hey there

    Current behaviour: When clicking load more button, the scroll position is fixated based on the position of the button. So technically the page jumps/scrolls down so that the newly loaded entries are beyond the upper screen boundary.
    Desired behavior: Better behaviour would be if the scrolling position after hitting load more button would be fixated to the positions of the posts instead of the button.

    #21028
    David Beckwith
    Participant

    Hi there,

    the normal behaviour is to load the posts below the Load More buttons position.
    Sounds like something else may be interfering with that – can you try disabling other plugins to see if there is a conflict?

    #21839
    rly
    Participant

    Hey

    I disabled all plugins
    The issue persists, but only in Chrome
    FF and safari work fine

    You can check yourself

    #21906
    Tom
    Keymaster

    Hi there,

    Can you link us to the page so we can take a look?

    #21922
    rly
    Participant
    #21991
    Tom
    Keymaster

    Interesting, can you try adding some custom javascript to your site to see if it resolves the issue?:

    add_action( 'wp_footer', function() {
        ?>
        <script>
            jQuery( '.wpsp-load-more a' ).on( 'click', function() {
                document.activeElement.blur();
            } );
        </script>
        <?php
    } );
    #22006
    rly
    Participant

    that fixes it!
    you can double-check if you want: https://dev.cannabisanbauen.net/startseite/

    #22111
    Tom
    Keymaster

    Awesome – thanks for letting me know. Will get this fixed in the next plugin version.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.