I'm writing you as a new user of Hammer. I can't get start with the very first simplest example in getting started page.
var hammertime = new Hammer(myElement, myOptions);
hammertime.on('pan', function(ev) {
console.log(ev);
});
myElement is clear enought, ok. myOptions is...? Some option I might want, ok, but you don't say anything about it. myOptions = null or {} gives me something like 'Uncaught TypeError: Cannot read property 'addEventListener' of null'.
I'm not expecting help here. I'm just telling you that the getting start may put away some new users.
I'm writing you as a new user of Hammer. I can't get start with the very first simplest example in getting started page.
var hammertime = new Hammer(myElement, myOptions); hammertime.on('pan', function(ev) { console.log(ev); });
myElement is clear enought, ok. myOptions is...? Some option I might want, ok, but you don't say anything about it. myOptions = null or {} gives me something like 'Uncaught TypeError: Cannot read property 'addEventListener' of null'.
I'm not expecting help here. I'm just telling you that the getting start may put away some new users.