Wondering what’s next for npm?Check out our public roadmap! »

    wheel-gestures
    TypeScript icon, indicating that this package has built-in type declarations

    2.2.3 • Public • Published

    wheel gestures

    wheel gestures and momentum detection in the browser

    npm (tag) only about 2kb minified and gzipped


    OS & Browsers

    • Mac OS (Chrome, Firefox, Safari, Edge), Magic Mouse, Magic Trackpad
    • Windows (Chrome, Firefox, Edge), Microsoft Precision Touchpads
    • Linux (to be tested)

    Prior Art

    Other people also thought that it might be helpful for some interactions to be able to distinguish between user initiated wheel events and the ones that are triggered by inertia scroll, but none of the other known libraries delivered results in the precision I needed, so I developed my own solution. Honourable mentions:

    Install

    npm i wheel-gestures

    DownloadsWeekly Downloads

    6,064

    Version

    2.2.3

    License

    MIT

    Unpacked Size

    356 kB

    Total Files

    77

    Last publish

    Collaborators

    • avatar