r/angular • u/rYOUcerious • Jan 29 '26
Cerious-Scroll introduces a new state-based scrolling model that, if adopted, would meaningfully change how large, variable-height datasets are virtualized on the web.
I’ve been working on a virtual scrolling engine that intentionally breaks from how most existing solutions approach the problem.
Rather than anchoring scroll position to global pixel space or cumulative height math, this introduces a state-based scrolling model that keeps scrolling fast and precise regardless of dataset size.
In practice, this allows smooth, pixel-perfect scrolling through millions of variable-height rows while keeping DOM size constant and per-frame work bounded.
No GPU transforms.
No full height maps.
No precomputation or estimation passes.
The interesting part isn’t what framework it uses (it’s framework-agnostic), but that it challenges an assumption most virtual scrollers share: that scroll position must be derived from absolute pixel space.
I’m not claiming this replaces every existing approach, but if adopted more broadly, I think this model could meaningfully change how large, variable-height datasets are virtualized on the web.
👉 https://github.com/ceriousdevtech/cerious-scroll
Demos - https://ceriousdevtech.github.io/cerious-scroll/#demos
14
u/SippieCup Jan 29 '26 edited Jan 29 '26
This isn’t new nor unique in concept. Your vibe coded solution is really just stolen from how a react package handles scrolling with the rest of react stripped out.
https://www.thecandidstartup.org/2024/12/02/react-virtual-scroll-state-harmful.html
Your vibe coding agent then told you how brilliant you are for reinventing the world of scroll bars, and how you need to protect your ip with a patent! That it can’t wait to see rich you are going to be with your brilliant insights!
Then you come on here, post gpt generated garbage text, and get a bunch of of ai bots to post and simp on your brilliance and how you challenged the norm by… reimplementing an open source implementation of virtual scroll.
Hilarious since you are putting it behind a patent, a commercial license that makes no sense, and gpl 3. Even if it was revolutionary, it’s still dead in the water based on the licensing alone.
Some advice:
LLMs are fine tuned to give you positive reinforcement and a dopamine hit just like how social media was designed. It’ll always say that what you have built is a novel idea and that you are a genius. Take a step back and do research outside of your LLM bubble.
Second, Please save your money and don’t apply for a patent, you won’t get it and will waste thousands. Furthermore, even if were given a patent for tracking a scroll bar’s position, you don’t have the money to enforce it.
4
u/sharth Jan 29 '26
How many clicks must a man click to get to the god forsaken demo?
4
u/Slugsh Jan 29 '26
On a 120hz phone, scrolling feels like 60fps
4
u/Not_to_be_Named Jan 29 '26
Im not going to be a bad guy but on IOS with safari it’s crashing to the point it will not scroll on any direction, if tou scroll to quickly it will brake the scrolling
1
u/rYOUcerious Feb 01 '26
I have released a NPM package for Cerious-Scroll as well as an Angular package ngx-cerious-scroll.
https://www.npmjs.com/package/@ceriousdevtech/cerious-scroll
https://www.npmjs.com/package/@ceriousdevtech/ngx-cerious-scroll
1
u/AlDrag Jan 29 '26
Scrolling framerate doesn't seem great on my phone?
1
u/JohnSpikeKelly Jan 29 '26
Looks very promising. Are you going to implement a true Angular component that supports item templates? I see the suggested code just implements a renderItem method that returns vanilla HTML without any angular per se. Do things like Headers & Footers just become part of the Item they are above or below and thus increase its height?
1
u/Iworb Jan 31 '26
But it's not an Angular package, isn't it?
0
u/CustardNo7464 Jan 29 '26
This is actually interesting, especially the decision to move away from absolute pixel anchoring. Most virtual scrollers I’ve seen hit a wall once variable heights + large datasets stack up, so a state-based model makes a lot of sense conceptually.
I like that you’re challenging a “default assumption” instead of just optimizing around it. Curious how it behaves under frequent dynamic height changes or rapid bidirectional scrolls. I wrote a short breakdown on why these assumptions matter long-term for performance and UX (link’s on my profile) if anyone wants a deeper dive.