ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Issue with Infinite scroll while scrolling upwards

Open angular-git-user opened this issue 8 years ago • 1 comments

http://plnkr.co/edit/Ueb6gr3Z0xqX5jwm9RMI?p=preview

This is the plunkr on UI Grid Infinite scroll tutorial (Just made 1 change, replaced lastpage < 4 to 14)

To reproduce the issue: Keep scrolling down to atleast 7-8 pages. Now when you scroll upwards it is seen that there is no smooth scrolling, the data on the grid changes directly by 100 steps for example when I scroll from 700 to 600 instead of seeing all the records in between I notice a jump of 100 i.e. direct jump from 700 to 600 then directly to 500th record.. then to 400, etc Please help

angular-git-user avatar Jul 15 '16 09:07 angular-git-user

Hi there, I've been struggling with infinite-scroll upwards since last two days.

Whenever I am trying to scroll upwards, the scroll is very flickery(jumpy) and jumps to previous pages even when I am not scrolling. I found out a plunkr today which I tried, and the scrolling seems to work. http://plnkr.co/edit/DfXkANDYkBOmjauF1HmF?p=preview <= jumpy scroll. Inconsistent behaviour http://plnkr.co/edit/33b8FAHHfNO0ryQ9oSD4?p=preview <= smooth scroll experience.

what the guy has does is that, he has removed the line scrollEvent.y = {percentage: 1/scrollHeight} with scrollEvent.y = {pixels: 1}; And that fixes the issue. Can anyone from the team check this and let me know if it is a bug which gets fixed by making this change.

adilhussain avatar Jul 11 '19 14:07 adilhussain