Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just a basic tutorial on how to use this #55

Open
DarianSteyn opened this issue Mar 8, 2017 · 7 comments
Open

Just a basic tutorial on how to use this #55

DarianSteyn opened this issue Mar 8, 2017 · 7 comments

Comments

@DarianSteyn
Copy link

No matter where I look, there is hardly anything on how to use this damn framework. Everything is so vague and they hardly explain how to implement this stuff. I simply want to add one swipe function to a HTML object. But I can't find ANY useful resources and it's so annoying. I have gone from the Hammer.js, to Hammer.min.js to the jquery.hammer.js and every single one of them has given me a error. Either saying Hammer is not defined or a addeventlistener is not a function - hammer js.

Just make ONE simple tutorial on how to implement the framework. We aren't all well-experienced coders. Everyone just assumes you can just figure it out with a one line explanation of -

"It’s easy to use, just include the library and create a new instance. -
var hammertime = new Hammer(myElement, myOptions);
hammertime.on('pan', function(ev) {
console.log(ev);
});"

Ok.. so I do that but then it's the same damn errors haha.

@TomVDH
Copy link

TomVDH commented Apr 12, 2017

I concur, Hammer.js documentation is flat out horrible for beginners.

@rlesac
Copy link

rlesac commented Apr 12, 2017

This project seems to be abandoned by the developer.
The documentation of this plugin is horrendous.

@DarianSteyn
Copy link
Author

It really is garbage for beginners. I do not suggest it for someone who wants to quickly implement touch features.

@jonathanarbely
Copy link

It took me a long time to implement it. Even as an advanced coder. Documentation is a must. Always.

@anormore
Copy link

anormore commented May 4, 2017

Agreed...

@bonchondev
Copy link

It was pretty hard to find how to use it! I use the jquery plugin, here's how I got it to work for slides after reading a post on stackoverflow:

$('.class').each(function(){
var $this = $(this);
var h = new Hammer(this);
h.on("swiperight", function() {
//code to execute
}
});
And I link to both jquery.hammer.js and hammer.js in the main document!

@DarianSteyn
Copy link
Author

But that's the point, you you shouldn't have had to do all of that when using a plugin. That is why the Dev's usually have thorough and clear documentation/examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants