Skip to content
Discussion options

You must be logged in to vote

You were close!

You needed to set page to state.clicked so that scroll.el.scrollLeft was getting the right value. page was hardcoded to 3.

Here is a demo with the fix.

https://codesandbox.io/s/mixing-html-and-webgl-w-occlusion-forked-vr117c?file=/src/Setup.jsx

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@luisvgs
Comment options

@mwmwmw
Comment options

@luisvgs
Comment options

Answer selected by luisvgs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants