About#

Pointers is flexible open-source library that can recognize gestures made by touch, mouse, and pointer-events.

QuickStart#

If you know how to use JQuery, then you already know how to use Pointers!

$p('YourSelector').on('tap nthtap:2 press press:up pan:start.namespace pan:end.namespace pan.namespace',function(){
console.info('Hey! You just trigger the handler!');
})

Note

Note the p between the dollar sign and the selector.

And that is it for simple use 😃

Example#

See the Pen by shamaseen (@shamaseen) on CodePen.



What makes it flexible?#

Because you can easily define your own event and add it to the listener, with all of the BaseEvent properties available for your CustomEvent