Closed jrdn91 closed 10 years ago
Hey,
You have both orientation
and direction
parameters (cf. https://github.com/ngryman/jquery.finger#additional-event-parameters).
For example:
$('body').on('drag', '.touchme', function(e) {
if ('vertical' == e.orientation)
console.log('moving ', 1 == e.direction ? 'bottom' : 'top');
});
I can't seem to figure out how I would go about gathering the information about if the drag direction is down or up, how would I detect this?