Scroll event keeps firing
See original GitHub issueDoes not seem to respect infiniteScrollDistance setting. Is infiniteScrollDistance implented?
i have
<div #itemListViewWrapper infinite-scroll [infiniteScrollDistance]="1" (scrolled)="onScroll()">
<item-component *ngFor="#item of itemListView" [item]="item"></item-component>
</div>
onScroll fires basically whenever i scroll regardless of distance bottom of the div to bottom of window changing it to 0 or 2 doesn’t matter
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
JQuery Scroll Event keeps firing when you scroll more
So I have a scroll event that fires when the user scrolls to a certain point on the site. It works until you...
Read more >Scrolling event being fired too many times
As I said, it does the job, but, it's slow and has glitches while scrolling. I think it's because I am doing on...
Read more >onscroll Event - W3Schools
The onscroll event occurs when an element's scrollbar is being scrolled. Tip: use the CSS overflow style property to create a scrollbar for...
Read more >JavaScript Scroll Events, Event Throttling & Passive Events
The scroll event fires when you scroll a webpage or an element. For a page, the scrollX and scrollY properties return the number...
Read more >The “scroll” event JavaScript Tutorial | window.onscroll
Learn about JavaScript's scroll event in this coding tutorial. I show you two ways to listen to scroll events and talk about why...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It turns out that in my case the issue was actually caused by a missing
DOCTYPE
declaration which leads to the output ofdocumentElement.clientHeight
andbody.clientHeight
being switched for compatibility with older websites as described here.@zoehneto amazing catch regarding missing
DOCTYPE
- I experienced the same issue!@orizens , I suggest this one being updated and reflected in the README.