Giter Site home page Giter Site logo

Comments (4)

arzafran avatar arzafran commented on June 28, 2024

time is missing when setting up the rAF function, it should look like this:

const raf = (time) => {
  this.Scroll.raf(time)
  requestAnimationFrame(raf)
}

if that doesn't fix it, can you please provide a codepen based on this template with your issue?

from lenis.

 avatar commented on June 28, 2024

Thats great thanks @arzafran, that's cleared up the errors in the console

However I'm now getting no console.log and the mouse wheel event isn't triggering anything at all.

if i move the mouse to the top and bottom of the screen I'm getting a tiny bit of movement but not a lot, do you know how I can check the wheel events?

from lenis.

 avatar commented on June 28, 2024

I had an element covering the main container that had 'pointer-events: none' that seem to be affecting it. I have removed this element but it's still not triggering lenis scroll it just seems to be the default smooth scroll Chrome behaviour.

from lenis.

clementroche avatar clementroche commented on June 28, 2024

Please reproduce it on codepen.

from lenis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.