link: function($scope, iElm, iAttrs, controller) {
var element = document.getElementById('pro');
var drag = Hammer(element).on("drag", function(event) {
alert('hello!');
});
}
it doesn't work;
but:
link: function($scope, iElm, iAttrs, controller) {
var element = document.getElementById('pro');
var tap = Hammer(element).on("tap", function(event) {
alert('hello!');
});
}
it's ok
this is my recognizers
hammerDefaultOptsProvider.set({
recognizers: [
[Hammer.Tap, {time: 250}],//ok
[Hammer.Swipe],//ok
[Hammer.Drag]// i don't know how to use 'drag' in recognizers
]
});
like this:
it doesn't work;
but:
it's ok
this is my recognizers
thanks your answer,best wishes~