-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScrolledUp Event issue #373
Comments
I have same problem |
There are 2 points We should look for ngx-infinite-scroll uses throttleTime with default configuration (leading value emits) so if you scroll to top in throttled interval, it will emit only first value, that could not satisfy infiniteScrollUpDistance check For example, infiniteScrollUpDistance=2(scrollTop should be less then 20% of scrollHeight to emit event), scrollTop= 1000 scrollHeight=2000, throttle interval=500ms. If you scroll to top in that interval, only scrollTop=999 might be handled, so needed event wouldn't be emitted Also It has problem with browser behaviour. |
please try latest v13 |
I have the same issue (^13.0.2). It is also present in Chromium browser, but less often My solution:
|
Expected Behaviour
scrolledUp should be triggered when scroll reaches the top of container.
Actual Behavior
I am using
ngx-infinite-scroll for my chat module. I want an event when scrollbar is at top of the container. For this, scrolledUp output event is present, but in my case it is not getting triggered on
currentScrollPosition:0
. It is triggered after scrollbar is scrolled down a bit after reaching top position. i.e.currentScrollPosition:2 / currentScrollPosition:3
.Version used: ^10.0.0
Browser Name and version: Chrome
The text was updated successfully, but these errors were encountered: