drumjs icon indicating copy to clipboard operation
drumjs copied to clipboard

Not working with hammerjs 2.0.4

Open gihan9a opened this issue 10 years ago • 1 comments

It doesn't work with hammer js 2.0.4 and it shows as frozen wheel.

gihan9a avatar Nov 24 '14 13:11 gihan9a

Hammer 2.0 uses swipeup/swipedown/panup/pandown event instead of drag events, this can be easily fixed by adding the following code in after Hammer declaration in line 290:

settings.touch.on("panup pandown swipeup swipedown", function(e){
    settings.rotation += Math.round(0 - e.deltaY);
    transform(true);
});

http://codepen.io/tangent/pen/raWprr

tangentlin avatar Jan 04 '15 19:01 tangentlin