Luiz Alberto Zaiats
Posts: 0
Joined: Wed Sep 04, 2013 10:12 pm

Events Handling: How to cancel an event?

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?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Events Handling: How to cancel an event?

Hello Luiz!

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

Return to “Issues”