Closed jamesbondo closed 8 years ago
This should be possible once I have fixed #2. Once that is done I will get back to you with a solution for this.
If I am right, you wanna know whether or not it moves a certain direction.
Something like:
$scope.onTouchmove = function() {
if (movingRight) {
// do something
} else if (movingLeft) {
// do something
}
};
Am I right @jamesbondo?
In case I am right then I would use ngTouchstart and ngTouchmove (or together with ngTouch) library.
Then save the coordinations for the touchstart event, and then on touchmove I would check the coordinates against the new event.
Closing it for now - however let me know if this does not resolve your issue.
thanks! can it decide moving left or right from the directive ?