Skip to content

a dank mouse tool for grabbing states out of the user pointer device!

Notifications You must be signed in to change notification settings

dank-inc/super-mouse

Repository files navigation

SuperMouse™

live demo 🦹🏼🐁

npm version

npm install @dank-inc/super-mouse

A dank mouse utility that does some neat physics-esque stuff and handles modifier keys, to be used with creative applications :)

Examples

Give your users some nifty things to fidget with, all while letting SuperMouse™ do all the heavy lifting.

Mousewheel + Mouse Inertia

Live Demo

TODO

  • Handler overrides
  • Modifyer keymap
  • add helpful message about keyevents in console
  • State objects for each button / gesture
  • gestures?
  • moar listenerz
  • docs
  • update the demo

DONE

  • basic event listeners
  • hacky demo
  • dom target

LATER

  • delta time on mouse move
  • encapsulate scroll, position, etc into separate concerns
  • add inertia to scroll behavior

About

a dank mouse tool for grabbing states out of the user pointer device!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published