idiotWu / smooth-scrollbar

Customizable, Extendable, and High-Performance JavaScript-Based Scrollbar Solution.
https://idiotwu.github.io/smooth-scrollbar/
MIT License
3.32k stars 383 forks source link

Use native scroll #475

Closed ehsan-shv closed 2 years ago

ehsan-shv commented 2 years ago

Motivation

smooth-scroll library is an amazing library for developing creative web apps but because this library uses a virtual scroll to translate content this makes some performance issues, especially on touch devices.

Proposal

Recently GSAP introduced a plugin named "smoothscroll". In this plugin, they use native scroll for smooth scrolling. Is this possible to refactor this library to use native scroll?

sadeghbarati commented 2 years ago

FYI @idiotWu

https://greensock.com/scrollsmoother/

ScrollSmoother gsap club product

https://www.youtube.com/watch?v=_-_JCocqNbw