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

pinchin/pinchout fire extraneous pinch events #824

Closed
CaporalF opened this Issue Jul 13, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@CaporalF

Using this code on Chrome on a Windows 7 based PC with Touch Screen:

var myElement = document.getElementById('myElement');
var mc = new Hammer.Manager(myElement);
var pinch = new Hammer.Pinch({threshold: 0});
mc.add([pinch])
mc.on("pinch pinchin pinchout pinchstart pinchend", function(ev) {
myElement.textContent += ev.type +" ";
});

Results in this sequence:

pinchstart pinch pinchin pinch pinchin... ...pinch pinchin pinch pinchend pinchin

Note the trailing pinchin. The same happens with pinchout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment