* Handle scroll events with RAF throttling
()
| 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 |