Skip to main content

All Questions

Tagged with
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 ...
Basj's user avatar
  • 45.4k
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 ...
Jan Andrè Schlösser's user avatar