meteor-hammer icon indicating copy to clipboard operation
meteor-hammer copied to clipboard

Swipe custom functions do not work

Open Kunal1985 opened this issue 8 years ago • 1 comments

Hi,

I have added the below helpers for configurations and event registration, I do not c the log messages in console. configureHammer: function () { return function (hammer, templateInstance) { var upSwipe = new Hammer.Swipe({ event: '2swipe', /* prefix for custom swipe events, e.g. 2swipeleft, 2swiperight */ pointers: 1, velocity: 0.1 }); hammer.add(upSwipe); return hammer; } }, templateGestures: { '2swipeup .ion-slide-box': function (event, templateInstance) { console.log("SWIPEUP IDENTIFIED") }, '2swipeleft .ion-slide-box': function (event, templateInstance) { console.log("SWIPELEFT IDENTIFIED") } }

Kindly check and let me know if i am doing something wrong here NOTE: Current version 4.0.2, Meteor version 1.3.1, testing on chrome browser currently.

Thanks & Regards, Kunal Kishor Ugale

Kunal1985 avatar Apr 20 '16 07:04 Kunal1985

I'm having the same issue.

sirganya avatar Jan 23 '17 13:01 sirganya