You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using ScrollControls and useScroll, based on scroll.offset, I'm moving camera inside useFrame. ScrollControls has pages={20}. At some point, when button is clicked, I need to manually update scroll.offset to half way (page=10), and make it possible to continue scroll from there. I've tried setting scroll.offset = 0.5, which worked. But after I start scrolling, scroll.offset goes to its previous value. I've also tried scroll.el.scrollTo method - no luck. scroll.range, scroll.curve methods seems to be not what I want (still playing with them).
Anyone knows the way?
The text was updated successfully, but these errors were encountered:
Question:
I'm using
ScrollControls
anduseScroll
, based on scroll.offset, I'm moving camera inside useFrame.ScrollControls
haspages={20}
. At some point, when button is clicked, I need to manually updatescroll.offset
to half way(page=10)
, and make it possible to continue scroll from there. I've tried settingscroll.offset = 0.5
, which worked. But after I start scrolling,scroll.offset
goes to its previous value. I've also triedscroll.el.scrollTo
method - no luck.scroll.range
,scroll.curve
methods seems to be not what I want (still playing with them).Anyone knows the way?
The text was updated successfully, but these errors were encountered: