action not fired on Windows scrolling
See original GitHub issuei’m using ngx-infinite-scroll module with Angular 5. My browser is Chrome.
The onScrollDown()
action is fired when i scroll down with the scrolling bar inside my div. To make it work, i need to give a height to my content and [scrollWindow]
should be set to false:
css
.search-results {
height: 200px;
overflow: scroll;
}
template
<div class="search-results"
infinite-scroll
[infiniteScrollDistance]="5"
[infiniteScrollThrottle]="10"
[scrollWindow]="false"
(scrolled)="onScrollDown()">
<p *ngFor="let i of array">
{{i}}
</p>
</div>
But when i set [scrollWindow]
to true (which is the default setting), and remove the search-results
class (no height set then), the onScrollDown()
is never fired even when i scroll down with the default right bar of my browser. Any idea why the default windows scrolling doesnt trigger the onScollDown() action? Thanks
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Why could window scroll event not being fired - Stack Overflow
It could be that some element (the body itself or some nested div ) has the css overflow property set to scroll ....
Read more >How to Fix Mouse Scroll Not Working on Windows 11/10
The first thing you should do when scrolling stops working is to make sure your mouse is correctly plugged into your PC.
Read more >FIX: Windows 10/11 Scrolling down on its own. - wintips.org
How to Fix: Mouse scrolling down on its own on Windows 10/11. · 1. Press the Windows key + I to launch the...
Read more >Fix: Mouse scroll is not working in Windows 10 / 11
Fix: Mouse scroll is not working in Windows 10 / 11 · 1. Press Windows Key+R to launch Run. Type “msconfig” and click...
Read more >How to Fix Two Finger Scroll Not Working on Windows 10
How to fix the two-finger scroll not working on Windows 10? Is the two-finger scroll not working on your laptop? In this video,...
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
@FacundoGFlores thanks. v 8.2.0 is published now.
@orizens
I’m running into the same problem. Check out this plunker: https://plnkr.co/edit/zrglhWQuww51kPhwxEvN
It doesn’t seem to work with the latest version of this project (0.8.1). If you roll back the version to, for example, 0.4.0, it will work.