meteor-hammer
meteor-hammer copied to clipboard
Swipe custom functions do not work
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
I'm having the same issue.