1.0.2 • Published 2 years ago

cant-touch-me v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Can't touch me

This class wil make (almost) any dom element untouchable with the mouse.

Usage

import CantTouchMe from "cant-touch-me";
const ctm = new CantTouchMe( document.getElementById("element") );

Limitations

This class uses transform to update the position so this can't be used on elements that already use transform in any way.

Todo list

  • Add resize support
  • Add customization options
  • Add Typescript support if there are custom options
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago