How to listen to swipe event on ion-toggle?

Hello everyone!

I’ve been trying to check wether the user clicked or "swiped’ a toggle element, but the problem is that even though ng-click works fine for clicking events, on-swipe-left and on-swipe-right doesn’t seem to trigger the event.

Any ideas how to listen to swipe gestures on io-toggle?

Thanks :smile:

Hey guys…

The solution was quite simple and I don’t know how I spent almost an hour and a half on this… instead of using on-swipe-left or on-swipe-right I just used ng-change so evertime the toggle changes I can fire my method…

See ya.