scroller: do update during animation frame
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/653/head
parent
19e068e36d
commit
7ba4055839
|
@ -171,7 +171,11 @@ export default defineComponent({
|
|||
if (this.scrollingRecyclerUpdateTimer) return;
|
||||
this.scrollingRecyclerUpdateTimer = window.setTimeout(() => {
|
||||
this.scrollingRecyclerUpdateTimer = 0;
|
||||
|
||||
// Run the actual update during animation frame
|
||||
window.requestAnimationFrame(() => {
|
||||
this.updateFromRecyclerScroll();
|
||||
});
|
||||
}, 100);
|
||||
|
||||
// Update that we're scrolling with the recycler
|
||||
|
|
Loading…
Reference in New Issue