kmewhort / pointer_events_polyfill

Polyfill to provide support for "pointer-events: none".
Other
274 stars 76 forks source link

Pointer Events Polyfill

Pointer Events Polyfill is a short javascript library which adds support for the style attribute "pointer-events: none" to browsers without this feature (namely, MS IE).

Installation

Include any reasonable recent version of jQuery and pointer_events_polyfill.js.

Basic usage:

$(document).ready(function(){
  PointerEventsPolyfill.initialize({});
});

That's it! Any "pointer-events: none" attributes will now work seamlessly in IE.

Options

You can also pass any of the following options into the initialize call:

License

(c) 2013, Kent Mewhort, licensed under BSD. See LICENSE.txt for details.