Scroll page to new elements inserted after click.

Created on 1 March 2017, over 7 years ago
Updated 24 July 2023, over 1 year ago

After click on more button, page not scrolled to new elements. We need to fix it.

To be more specific, after clicking the load more button, the page stays on the position of the load more button and it is hard to tell that new elements have been inserted in the DOM before the load more button. The patch for this issue (https://git.drupalcode.org/issue/views_infinite_scroll-2856902) restores the previous page scroll position after load more has been clicked so that the page scrolls to the first new element.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine HOG

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Is this still an issue with 2.0.x? If yes, please update the version and set the status active again with clear steps or (best) with a test showing what's broken.

    2.0.x is the active development branch.

    If nobody replies, we should assume this is fixed and close this issue outdated.

    Thanks!

  • πŸ‡ΊπŸ‡ΈUnited States t_stallmann
  • Status changed to Active over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States t_stallmann

    Still active on 2.0.x and the patch still works.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Thanks for the feedback! I don't think we should add this, as this simply scrolls to the top of the page, but if the view is already in a lower part of the page, it scrolls to an unexpected position.

    To have something like this added, it needs to be configurable. So we should instead focus on the parent task: πŸ“Œ [META] Add setting for scroll behavior (position, treshold, delay) Active

    This one will not be merged as-is, as it doesn't fit well for all cases.

Production build 0.71.5 2024