Remove Gesture Event Trigger


#1

Hello,

After one has created a gesture using something like this:

myStack.on(gestures.GestureTypes.swipe, function (args) {

  //do something
    
});

is it possible to stop the listener?I tried myStack.off() but no luck?


#2

Didn’t test it, but I think you need to tell it “what” to to switch off, so: myStack.off(gestures.GestureTypes.swipe)


#3

Thank you . That does work.