Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with
0 votes
1 answer
1k views

Body vertical swipe to scroll with hammerjs

I would like to mimic touch device scroll behaviour with hammerjs I can listen to swipe events and stuff and make calculations to animate to position based on velocity but it wont be like it work on ...
Ron's user avatar
  • 4,095
2 votes
3 answers
4k views

Permit horizontal pan events only if the gesture is not already scrolling vertically

I'd like to set up Hammer.js so that I can respond to horizontal pan events. My first attempt looks like this: var mc = new Hammer(document.body); mc.on("panleft panright", runBind(this, '...
nelstrom's user avatar
  • 19.5k
3 votes
5 answers
11k views

Hammer.js breaks vertical scroll when horizontal pan

I'm using Hammer.js to look for horizontal pan gestures, I've devised a simple function to clicks a button when panned left or right. It works okay, except the vertical scroll doesn't do anything on a ...
any_h's user avatar
  • 558