Replies: 1 comment
|
You can also ask this on discord, I think more people are active there. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I'm working on porting the popular smooth-scrolling library, Lenis, to Dart for use with Jaspr. I'm relatively new to web development and the intricacies of browser event loops, and I've hit a persistent "glitch" that I'm struggling to solve.
I used LLM for the initial porting of the TypeScript source code to Dart. The port is functionally complete and almost works perfectly, but there's a subtle yet noticeable stutter/glitch during scrolling that isn't present in the original JavaScript version.
You can see a recording of the glitch here:
https://github.com/user-attachments/assets/32cd5bc2-a40b-48f1-a7a9-b5027b4a2b35
What I've Done So Far:
I've created a minimal reproducible example with the ported library. You can find the complete source code for the library and the example usage here:
https://github.com/YashMakan/jaspr_lenis
https://github.com/YashMakan/jaspr_lenis/tree/main/example
My Question:
Could anyone with more web/Jaspr/lenis experience take a look at the provided code and logs and offer some insight into what might be causing this persistent glitch? I feel like I'm 99% of the way there, but this last 1% is proving to be incredibly difficult.
Any guidance, advice, or pointers is appreciated.
All reactions