reactjs - Momentum for wheel event is cancelled when child element is removed -


I want to use the onWheel to execute those lists which only have those elements Presents that are in the scene, but it seems that if I want to charge child elements, then I have to sacrifice scrolling. In this example, you can scroll through one million rows, but the speed scroll works out only because the gray area is because the row element that was below the cursor when you trigger is removed from the dot. goes. (Do you want to leave the main feature on line 43, scrolling will work again because in this way, row elements are reused instead of being removed.)

Does any container element The goal can be to make the case of the wheel incident instead of the transient line element

Suggestions for optional implementation that might be avoiding this problem are probably welcome, probably using onScroll OnWheel ?

(Note: Inspired by the system)

I solved it ng-repeat It can not help you in the angular JS application by modifying, but considering this problem can help other people.

You only need to add track to ng-repeat element.id .

  & lt; Li ng-repeat = "works in tasks track by task.id" & gt;  

View:


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -