[Encountered BUG] Inertia problem of fast scrolling of ListView

[Phenomena] 

    After loading N pieces of data in any ListView, the finger slides back in rapid succession, and after the finger leaves the screen, the listview continues to scroll up under the action of "inertia"

 

    The magic happens: when the listview scrolls to the first item of data, the "inertia" does not disappear. Under the action of inertia, the listview will continue to scroll in the opposite direction at the original scroll speed, that is: from the list When the lowest end scrolls up to the first data, the scrolling direction will reverse and scroll down

 

   For example: The listview loads 100 pieces of data, the user is looking at the data near the 100th item, and then slides his finger down twice and leaves the screen, the listview will scroll quickly in the direction of the first item, but when the listview rolls back to the first item It didn't stop when one piece of data, but continued to scroll in the reverse direction at the original speed, and then scrolled in the direction of the 100th data.

   I found the same situation in the chat list in google's own game Ingress, and I could scroll forever, scroll to the beginning, scroll to the end and go back to the beginning.


【analyze】 


    Please let me know if you know the solution


[Correction] 

 

    Please let me know if anyone knows the solution.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326050465&siteId=291194637