All Questions
2
questions
2
votes
2
answers
5k
views
Hammer.js pan event only for touch devices and not for desktop computer Click+Drag
I use this standard code for Pan / Pinch (1) with Hammer.js :
var mc = new Hammer(document.body);
mc.add(new Hammer.Pinch({ threshold: 0 })).recognizeWith(mc.get('pan'));
// let the pan gesture ...
1
vote
2
answers
12k
views
Prevent only horizontal scrolling mobile app
I'm developing an web app. On the left side is an sidebar using the Sidr-plugin (jQuery Plugin: Sidr). The test site is on my developing server. My problem is that if I'm swipe from left-to-right the ...