Skip to content

ROADMAP #287

Open
Open

Description

@clementroche

List

  • support pull to refresh and UI collapse on syncTouch
  • support scroll snap (https://github.com/darkroomengineering/lenis/blob/main/packages/snap/README.md)
  • support typescript
  • lenis/vue
  • lenis/svelte
  • support RSC 'use client'
  • listen to overflow change and stop/start accordingly
  • include scroll-padding to scrollTo
  • auto RAF
  • examples (nested scroll, horizontal, etc.)
  • check if GSAP Scrolltrigger integration is even necessary
  • detect internal links (#anchor) click and scroll to accordingly
  • deprecate lenis/snap type option.
  • use bun

Breaking changes:

  • rename options correctly (eg: syncTouch -> touch.sync)
  • lenis/react deprecate root option to not target window but just forward instance. Maybe children detection can help.
  • rename properties to be more explicit (eg: isScrolling -> isWheelScrolling/isTouchScrolling/isUserScrolling)
  • lenis/react use useSyncExternalStore

How can you help ?

Activity

  1. self-assigned this
    on Jan 31, 2024
  2. pinned this issue on Jan 31, 2024
  3. Myphz commented on Mar 30, 2024

    @Myphz
    Contributor

    Hello! I see that many types are typed as any in dist/types.
    Would it be helpful to open a PR and make those types a bit narrower? Or are you working on it already?

  4. clementroche commented on May 27, 2024

    @clementroche
    MemberAuthor

    @Myphz PR are always welcome

  5. Myphz commented on May 29, 2024

    @Myphz
    Contributor

    @Myphz PR are always welcome

    I opened #345 to improve TypeScript support. Let me know if everything's ok! Thank you

  6. giuliobracci commented on Jun 10, 2024

    @giuliobracci

    Hi @clementroche regarding rename options correctly (eg: syncTouch -> touch.sync), you are talking about renaming and also refactoring the options passed on Lenis instantiation?

    E.G:

    const lenis = new Lenis({
        lerp: 0.1,
        touch: {
         sync: false,
         syncLerp: 0.075,
         inertiaMultiplier: 35
        },
    });
    
  7. clementroche commented on Jun 27, 2024

    @clementroche
    MemberAuthor

    Hi @clementroche regarding rename options correctly (eg: syncTouch -> touch.sync), you are talking about renaming and also refactoring the options passed on Lenis instantiation?

    E.G:

    const lenis = new Lenis({
        lerp: 0.1,
        touch: {
         sync: false,
         syncLerp: 0.075,
         inertiaMultiplier: 35
        },
    });
    

    Yes @giuliobracci

    const lenis = new Lenis({
        wheel: {
          lerp: 0.1,
        },
        touch: {
         sync: false,
         lerp: 0.075,
         inertiaMultiplier: 35
        },
    });
  8. changed the title [-]TODOS[/-] [+]ROADMAP[/+] on Aug 22, 2024
  9. joebentaylor1995 commented on Feb 8, 2026

    @joebentaylor1995

    Are we getting rid of snap?

  10. clementroche commented on Mar 3, 2026

    @clementroche
    MemberAuthor

    no @joebentaylor1995, it's just about removing type option that is legacy stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions