Page 1 of 1

Events Handling: How to cancel an event?

Posted: Wed Sep 04, 2013 10:12 pm
by Luiz Alberto Zaiats

How can I cancel an event? I am trying to make a Carousel not infinite loop, so the idea was to capture the BeforeNext and BeforePrev events and then verify the currentIndex of frames, if it's the last one or the first one, i would cancel the event... On common Javascript a simple e.stopPropagation() do the work, but i don't have the e variable on my event handler using appery.io API... Any idea?


Events Handling: How to cancel an event?

Posted: Wed Sep 04, 2013 11:04 pm
by Alena Prykhodko

Hello Luiz!

You can try using 'event' object in Run JavaScript action.