Giter Site home page Giter Site logo

Comments (9)

orizens avatar orizens commented on May 17, 2024

hi @zeeshanjan82 .
please consult the example in the readme - https://github.com/orizens/angular2-infinite-scroll/blob/master/README.md
your code attach an event handler for each "li" element.

from ngx-infinite-scroll.

orizens avatar orizens commented on May 17, 2024

@zeeshanjan82
have you solved the issue?
if so, please mark it as closed.
Thanks.

from ngx-infinite-scroll.

peterhoang avatar peterhoang commented on May 17, 2024

I'm also experience the same thing. I do not want scroll up to trigger my scrolled down handler.

<div infinite-scroll
     [infiniteScrollDistance]="10"
     [infiniteScrollThrottle]="500"
     (scrolled)="onScrollDown()">

     <ul>...</ul>
</div>

from ngx-infinite-scroll.

orizens avatar orizens commented on May 17, 2024

@peterhoang
notice that the container should have a fixed height as shown in the demo plunkr:
https://plnkr.co/edit/DrEDetYnZkFxR7OWWrxS?p=preview
since height is the page's height, this is why the scrolled trigger is very sensitive and triggered almost immediately.

from ngx-infinite-scroll.

MarcosEich avatar MarcosEich commented on May 17, 2024

The example also have a strange behaviour. If I go down quickly the scroll event is not fired. But when I go up a little it is called.

Something weird seems to be happening here.

from ngx-infinite-scroll.

orizens avatar orizens commented on May 17, 2024

hi @Joqus
i noticed that. currently, i don't know why it happens.
perhaps - I should consider checking with a timeout if the handler suppose to trigger a scroll event.

from ngx-infinite-scroll.

basedalexander avatar basedalexander commented on May 17, 2024

Same to me. Have you figured why is this happening?

from ngx-infinite-scroll.

nullvoids avatar nullvoids commented on May 17, 2024

also experiencing simliar issue as joqus and thohoh. would like to find a fix for scrolling down too quickly

from ngx-infinite-scroll.

orizens avatar orizens commented on May 17, 2024

this seems to occur because of the issue described in #67

from ngx-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.