Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cant-touch-me

martijnbleyen11ISC1.0.2

Class that will make any dom element untouchable.

dom, js, utility, evade, untouchable, domelement

readme

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

  • <input disabled="" type="checkbox"> Add resize support
  • <input disabled="" type="checkbox"> Add customization options
  • <input disabled="" type="checkbox"> Add Typescript support if there are custom options