@dreamworld/hammerjs
v1.0.1
Published
This is a wraper module of hammerjs (https://www.npmjs.com/package/hammerjs) which just export globle varialbe
Downloads
124
Keywords
Readme
hammerjs
Overview
- This is a wraper module of hammerjs (https://www.npmjs.com/package/hammerjs) which just export globle varialbe
Hammer
.
Use cases
import Hammer from "@dreamworld/hammerjs/hammer.js";
var hammerInstance = new Hammer(element);
hammerInstance.get('pinch').set({ enable: true});
hammerInstance.on('pinch', function(ev) {
//Write you code based on event
});