Skip to main content
deleted 2 characters in body
Source Link
MichaelB
  • 1.4k
  • 1
  • 15
  • 30

The swipe gesture recognizer makes hammer apply the touch-action: pan-y css property to the DOM node its on,

This basically tells the browser to ignore all vertical gestures and you get no vertical scrolling.

To fix that simply specify in hammer's options {touchAction: 'auto'}, without jQuery it looks like that: var hammertime = new Hammer(resim, {touchAction: 'auto'});

var hammertime = new Hammer(domElement, {touchAction: 'auto'});

hammertime.on('swipe', function(ev) {
    var targetLi = this;
    animateLisMob(targetLi);
});

The swipe gesture recognizer makes hammer apply the touch-action: pan-y css property to the DOM node its on,

This basically tells the browser to ignore all vertical gestures and you get no vertical scrolling.

To fix that simply specify in hammer's options {touchAction: 'auto'}, without jQuery it looks like that: var hammertime = new Hammer(resim, {touchAction: 'auto'});

hammertime.on('swipe', function(ev) {
    var targetLi = this;
    animateLisMob(targetLi);
});

The swipe gesture recognizer makes hammer apply the touch-action: pan-y css property to the DOM node its on,

This basically tells the browser to ignore all vertical gestures and you get no vertical scrolling.

To fix that simply specify in hammer's options {touchAction: 'auto'}, without jQuery it looks like that:

var hammertime = new Hammer(domElement, {touchAction: 'auto'});

hammertime.on('swipe', function(ev) {
    var targetLi = this;
    animateLisMob(targetLi);
});
Source Link
MichaelB
  • 1.4k
  • 1
  • 15
  • 30

The swipe gesture recognizer makes hammer apply the touch-action: pan-y css property to the DOM node its on,

This basically tells the browser to ignore all vertical gestures and you get no vertical scrolling.

To fix that simply specify in hammer's options {touchAction: 'auto'}, without jQuery it looks like that: var hammertime = new Hammer(resim, {touchAction: 'auto'});

hammertime.on('swipe', function(ev) {
    var targetLi = this;
    animateLisMob(targetLi);
});