Giter Site home page Giter Site logo

Comments (5)

samcleaver avatar samcleaver commented on April 27, 2024

I'm experiencing the same problem as well, will try and debug today.

from infinite-scroll.

samcleaver avatar samcleaver commented on April 27, 2024

It seems that somehow in the past localMode dissapeared and wasn't replaced. I've added some logic to the script -- to use a DIV container instead of a window:

  1. Set the container option on the infinitescroll settings (to whatever your containers selector is, i.e. #innerscroll)
  2. Ensure your container is set to overflow:scroll;

from infinite-scroll.

lukeshumard avatar lukeshumard commented on April 27, 2024

i thought localMode was deleted intentionally?

https://github.com/paulirish/infinite-scroll/blob/a08e091b5d59d8871346c546c5e67a02e0dea95f/jquery.infinitescroll.js

from infinite-scroll.

samcleaver avatar samcleaver commented on April 27, 2024

Unfortunately I didn't see Paul's comment till after I had reimplemented it, it didn't add a lot more complexity after all to be honest, adding perhaps 8 lines of code max (just javascript deciding whether to use window as the base or a container). I can revert if Paul wishes though.

from infinite-scroll.

lukeshumard avatar lukeshumard commented on April 27, 2024

okay, sounds good to me. i just thought i would get everyone's opinion after seeing this as closed. oh, the joy of labeling closed issues.

from infinite-scroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.