Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onSplineScroll not being triggered #200

Open
nick-barth opened this issue Jul 15, 2024 · 0 comments
Open

onSplineScroll not being triggered #200

nick-barth opened this issue Jul 15, 2024 · 0 comments

Comments

@nick-barth
Copy link

nick-barth commented Jul 15, 2024

https://codesandbox.io/p/sandbox/framer-motion-useinview-forked-k2h36y?file=/src/App.js:3,32

export default function App() {
  const handleScroll = (e) => {
    console.log("Please sir work", e);
  };
  return (
    <div>
      <div style={{ position: "fixed", top: 0 }}>
        <Spline
          onSplineScroll={handleScroll}
          scene="https://prod.spline.design/WhqYuoCW2u5WdxPi/scene.splinecode"
        />
      </div>
)})

We would expect to see the scroll event console logged here on spline scroll? As you can see in the codesandbox, our 3d model is animating based off scroll, so the events are going through. Any ideas?

The actual issue we are trying to solve, is that scrolling quickly to the top, skips scroll animations (ie from pixel 1400-1600, and this can leave half animated states.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant