Any way to Automatically Load Content when scrolling within a DIV?

Created on 12 July 2017, almost 7 years ago
Updated 12 October 2023, 9 months ago

My view block is displayed within a DIV with a fixed height and overflow:auto, so all the scrolling happens within that DIV. But the "auto load content" event is apparently triggered when the whole document is scrolled to the end which never happens in my case, so new content is never loaded.
Quick question: is there an easy fix (or maybe I am simply missing something) before I start hacking the code?

✨ Feature request
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia marassa Moscow

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

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!

  • Status changed to Needs review 11 months ago
  • πŸ‡¬πŸ‡§United Kingdom lind101

    Hey Anybody,

    This is still an issue on 2.0.2 and the patch in #23 still fixes it for me.

    To recreate, set the outtermost DIV of a Infinite Scroll View to have CSS properties of overflow-y: scroll and a fixed height, when the bottom of the DIV is reached the load in not triggered. There is a test included in the patches.

    Cheers!

  • Status changed to RTBC 9 months ago
  • πŸ‡ΊπŸ‡¦Ukraine vlad.dancer Kyiv

    I confirm that this issue still exists in 2.0.2. Patch #23 fixes the problem and steps to recreate descibed in #25 are correct.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.2.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update 6 months ago
    3 pass
Production build 0.69.0 2024