You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can still jump to a certain scroll position. If your items are 50px tall and you want to jump to the 100th item, simply jump to 5000px.
This isn't really any different than issue #3474, and the conclusion is the same. I know that's probably not what you wanted to hear, but it's not worth the inherent slowdown anchor scrolling in collection-repeat would introduce.
A more technical explanation: in order to allow anchor scrolling, we would have to parse every element in the list in to DOM elements ahead of time, index, and cache it. As a list grows, that scales very poorly. In fact, at that point it'd be faster to let the browser use its native built in efficiencies with regular scrolling.
If jumping to a px value isn't a feasible option, the most efficient way to anchor scroll that we can think of is native scrolling.
Activity
perrygovier commentedon Apr 21, 2015
You can still jump to a certain scroll position. If your items are 50px tall and you want to jump to the 100th item, simply jump to 5000px.
This isn't really any different than issue #3474, and the conclusion is the same. I know that's probably not what you wanted to hear, but it's not worth the inherent slowdown anchor scrolling in collection-repeat would introduce.
A more technical explanation: in order to allow anchor scrolling, we would have to parse every element in the list in to DOM elements ahead of time, index, and cache it. As a list grows, that scales very poorly. In fact, at that point it'd be faster to let the browser use its native built in efficiencies with regular scrolling.
If jumping to a px value isn't a feasible option, the most efficient way to anchor scroll that we can think of is native scrolling.