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

Is there a way to show how many pixcels have been scrolled? #37

Open ianthedev opened 10 years ago

ianthedev commented 10 years ago

It can probably be done by using onSwipeStart function. But how? Does onSwipeStart provide any useful object?

Stereobit commented 10 years ago

Hey, check out the onDrag callback. It's been called with a lot of informations:

this.settings.onDrag.call( this, this.activeElement, parsedEvent, coordinates.overscroll, event )

ianthedev commented 10 years ago

Thanks. Maybe it could be explained in documentation.