How to detect change in drag direction


#1

Hey all,

I am currently using the on-drag-up and on-drag-down directives to essentially scrub through some images. The way they work however is the drag direction is based off the touch point, so if you drag to the top of the screen from a touch point half way up the screen, it doesn’t count as a drag down until you pass back down past that touch point again in the middle of the screen.

Has anyone worked with detecting a change in drag direction using the ionic directives? Any ideas on how I can detect a user has changed their drag direction from up to down when they haven’t lifted off the screen?

Any help most appreciated.

Cheers
Adam