-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
"nth-last-child" is getting broken (not applying on the elements) after you scroll with scrollbar thumb. #9997
Comments
This issue is more than just the nth-last-child (although that one never works). It also isn't applying all the nth-child selectors on extremely fast scrolling. In the screenshot:
|
Surprised it never worked for you. I don't remember having any issues before with old items presenter. |
I should have been more clear: I meant the same as you said. It was only broken in the items presenter refactoring that was just merged. It worked before but now never works (even in the screen capture above). |
This is caused because
What happens is:
|
There are a few ways to fix this, but I can't help feeling that the
|
@grokys In both cases, I think it was unnecessary api oversimplification from my side. Probably assuming that TotalCount/GetIndex calls are supposed to be cheap O(1). |
And a passing test for `nth-child` selector.
Describe the bug
"nth-last-child" is getting broken (not applying on the elements) after you scroll with scrollbar thumb.
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
demo.mp4
The text was updated successfully, but these errors were encountered: