Question: Scrolling lists #588
Replies: 4 comments
-
You could have 4 canvas, that should work. Images are pixel perfect when the source ratio is correct, i would use a regular plane instead of the image component. Infinite scroll would be the same as on the dom. Perhaps if you detect offset 1 you could set scroll top to 0. Though you would loose momentum, but there has to be a solution for it. Generally, it's just a regular scroll area. |
Beta Was this translation helpful? Give feedback.
-
ok, i implemented infinite scroll, but it only works without damping, i would need some help here: https://codesandbox.io/s/scrollcontrols-demo-website-forked-x8gvs?file=/src/ScrollControls.tsx:2729-3215 damping is set to 100 for this one, so it's instant. with a slow value (try 4) it breaks the illusion. edit: turns out i have to add/subtract the left over dampened value and that seems to fix it. |
Beta Was this translation helpful? Give feedback.
-
I also have a few questions about the scroll lib:
For the rest, the library works perfect! Great work :) |
Beta Was this translation helpful? Give feedback.
-
im pretty bad at css and dom, someone will have to make it work/look into it. the basis (0-1 scroll) works quite well for now, these extras, i don't think im able to do it. the file can be copied into a project locally: https://github.com/pmndrs/drei/blob/master/src/web/ScrollControls.tsx and it's still quite readable. if you find something please pr it. |
Beta Was this translation helpful? Give feedback.
-
Hello, I have a bunch of questions about what is possible and what would be a good way to go about doing it, ie, can it be done, if so what direction to take?
Regarding this demo https://codesandbox.io/s/yjhzv?file=/src/App.js
Beta Was this translation helpful? Give feedback.
All reactions