hammerjs / hammerjs.github.io

Website
https://hammerjs.github.io
71 stars 582 forks source link

Getting started is not that usefull #50

Open Noeljunior opened 7 years ago

Noeljunior commented 7 years ago

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.

bmx666 commented 1 year ago

Hi @Noeljunior thanks for your issue, I also spent 1 hour to figure out what a hell is going on here???... And 6 years later - nothing...