aurelia / ui-virtualization

A plugin that provides a virtualized repeater and other virtualization services.
MIT License
90 stars 45 forks source link

Empty item at the top of list #134

Closed petronellius closed 5 years ago

petronellius commented 6 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior: When CPU is high and new items are added to the list and then list is quickly scrolled to the top, empty list item appears. image

Steps to reproduce:

  1. Open plunker in Chrome
  2. Open DevTools and in Performance tab set CPU throttling to be 6x slowdown
  3. In plunker click "Add items..." button
  4. Scroll down in list, click "Load more items..." and press 2x Home key on keyboard.

When I remove progress indicator the issue disappears. Not sure if the reason is that its animation causes the CPU be higher or if it is somehow in collision with virtual-repeat.for.

bigopon commented 5 years ago

I can't seem to be able to reproduce this with latest commit. Sample app at https://dist-qdzaosxjeb.now.sh/#/ @petronellius Can you help test this?

@EisenbergEffect Can be closed.