MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / onScroll

Method onScroll

src/components/virtualList/index.js:70–76  ·  view source on GitHub ↗

* Handle scroll events with RAF throttling

()

Source from the content-addressed store, hash-verified

68 * Handle scroll events with RAF throttling
69 */
70 onScroll() {
71 if (this.rafId) return;
72 this.rafId = requestAnimationFrame(() => {
73 this.rafId = null;
74 this.render();
75 });
76 }
77
78 /**
79 * Render visible items

Callers 1

touchMoveFunction · 0.80

Calls 1

renderMethod · 0.95

Tested by

no test coverage detected