The scroll is next to unlimited in its length
Scrolling reaches it's limit at 3.3553e7px
There should be 1 Million items 191739 are reachable
https://stackblitz.com/edit/angular-material2-issue-mlhd9q
"@angular/cdk": "7.0.2",
"@angular/core": "7.0.1",
Google Chrome
Version 71.0.3578.98 (Official Build) (64-bit)
It doesn't seem to be a browser limit. I have been able to create a larger scroll area than the limit above and also successfully used translateY() with a greater value.'
UPDATE:
I tried to debug it and found out the culprit is in the measureScrollOffset(): it starts to return wrong values at around 50.000.000px
el.scrollTop returns a wrong value.
I've marked this as P5 because I'm not sure if it is feasible due to the incorrect measurements the browser reports
I find it strange that the issue reproduces in any browser that I tested. Is this a known issue?
Yes, browsers have limits on the size of elements. It would be possible to work around those limits by stacking multiple elements, except that the limit also appears to apply to scrollHeight/scrollTop https://jsfiddle.net/malerba89/gbzwrcuv/
I wrote blog and implemented a solution to this issue: Read here
Most helpful comment
I wrote blog and implemented a solution to this issue: Read here