I’m using the on-swipe-left directive in my app to respond to swipe gestures with a custom function. I need to animate an element while it is being swiped (it needs to ‘slide along’ with the swipe gesture). In the past, we used ng-swipe for this, because it provides a ‘move’ function that holds the current position of the element while it is being swiped. However, since ng-swipe has a dependency on ng-touch, and the latter should not be used in combination with Ionic, we’re now looking into the built-in gestures of ionic.
Is there any way to get the current position of an element while it is being swiped? Or, alternatively, is there any other way to apply a custom animation to the on-swipe event?