Stereobit / dragend

dragend JS – a touch ready, full responsive, content swipe script
http://stereobit.github.com/dragend/
MIT License
486 stars 113 forks source link

What direction did I swipe? #84

Closed alexiovay closed 8 years ago

alexiovay commented 8 years ago

How can I output in which direction I just swiped?

alexiovay commented 8 years ago

I just figured it out reading "transform" css changes:

JQuery: transformBefore = parseInt($('#swipeWrapper').css('transform').split(',')[4]);