lethargy
Distinguish between scroll events initiated by the user, and those by inertial scrolling (by d4nyll)
lethargy-ts
π Distinguish between intentional wheel events and inertial scrolling (by snelsi)
lethargy | lethargy-ts | |
---|---|---|
1 | 2 | |
528 | 55 | |
- | - | |
10.0 | 5.2 | |
over 4 years ago | 6 days ago | |
CoffeeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lethargy
Posts with mentions or reviews of lethargy.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-19.
-
Lethargy-TS β A Modern Typescript Rewrite of the `lethargy` inertia scroll detection library
I found a relatively popular library called `lethargy` that can determine whether a scroll was intentional, but it had a few issues. It has no TypeScript types, and its scroll checking logic had some drawbacks, resulting in invalidating of a lot of scroll events at some point.
lethargy-ts
Posts with mentions or reviews of lethargy-ts.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-19.
-
Lethargy-TS β A Modern Typescript Rewrite of the `lethargy` inertia scroll detection library
I made a library called "lethargy-ts" to solve the issue of scroll inertia on laptops and phones. I faced this problem while developing a website with full-page scrolling. Laptops like Macs spam scroll events even after the user has swiped, which results in scrolling two or three sections instead of just one.
What are some alternatives?
When comparing lethargy and lethargy-ts you can also consider the following projects:
uievents - UI Events
svelte-gesture - π Bread n butter utility for component-tied mouse/touch gestures in Svelte.
ChromeTabMouse-Chrome-Tab-Mouse - ChromeTab let you switch `tab`, transfer tabs, change current selected `tab` only with the `mousewheel` scrolls, while being able to continue to navigate or keep current `tab` in the view, keep `control` can or should interfere with others shortcuts or tabbar shortcuts, but no.
use-gesture - πBread n butter utility for component-tied mouse/touch gestures in React and Vanilla Javascript.
mac-mouse-fix - Mac Mouse Fix - Make Your $10 Mouse Better Than an Apple Trackpad!