question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

action not fired on Windows scrolling

See original GitHub issue

i’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:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
orizenscommented, Jan 12, 2018

@FacundoGFlores thanks. v 8.2.0 is published now.

2reactions
samucommented, Jan 11, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found