Hello,
how can pass a custom hold_timeout value to overwrite the default value of 500?
.directive('incrementTemperature', ['$ionicGesture', function($ionicGesture) {
return {
restrict: 'A',
link: function($scope, $element, $attr) {
// add gesture (#1)
var holdGesture = $ionicGesture.on('hold', function(e) {
// notice
console.log('Hold-Event');
}, $element);
// set timeout (#2)
holdGesture.options.hold_timeout = 300;
// debug output (#3)
console.log(holdGesture);
}
}
}])
My current “solution” does not work (#2). The custom value appears correctly in the debug log object view (#3) but the hold events occurs at the moment defined in the default value.
I guess, that i have to set the value “on init” (#1). The question is how to do that, i hope you can help me.
Thank you