Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,25 @@ instance.destroy();
```

# Options
* pageClass: classname selector for all elments that should provide a page
* direction: "horizontal" or "vertical"
* minDragDistance: minuimum distance (in pixel) the user has to drag to trigger swip
* page: Number of page to load on start
* scribe: pixel value for a possible scribe
* onSwipeStart: callback function before the animation
* onSwipeEnd: callback function after the animation
* onDrag: callback on drag
* onDragEnd: callback on dragend
* afterInitialize:
* borderBetweenPages: if you need space between pages add a pixel value
* duration
* hammerSettings
* preventDrag: if want to prevent user interactions and only swipe manualy
* disableScroll: prevent scroll on mobile version
Default value in parenthesize.
* `pageClass`: classname of page elements. (`"dragend-page"`)
* `direction` : "horizontal" or "vertical" direction of transitions. (`"horizontal"`)
* `minDragDistance` : minimum distance (in pixels) the user has to drag to trigger swipe. (`"40"`)
* `onSwipeStart`: callback before page transition
* `onSwipeEnd`: callback after page transition
* `onDragStart`: callback on drag start
* `onDrag`: callback on drag
* `onDragEnd`: callback on drag end
* `afterInitialize`: called after the pages are sized
* `keyboardNavigation`: if you want to enable keyboard navigation. (`false`)
* `stopPropagation`: prevent event propagation. (`false`)
* `itemsInPage`: number of items in a page . (`1`)
* `scribe`: pixel value for a possible scribe . (`0`)
* `page`: number of the page to load on start. (`1`)
* `borderBetweenPages`: space (in pixels) between pages. (`0`)
* `duration`: transition duration. (`300`)
* `preventDrag`: prevent user interactions and only swipe manually. (`false`)
* `disableScroll`: prevent touch scroll. (`false`)

# CHANGELOG

Expand Down
27 changes: 14 additions & 13 deletions dragend.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,23 @@
//
// You can use the following options:
//
// * pageClass: classname selector for all elments that should provide a page
// * pageClass: classname of page elements
// * direction: "horizontal" or "vertical"
// * minDragDistance: minuimum distance (in pixel) the user has to drag
// to trigger swip
// * page: Number of page to load on start
// * scribe: pixel value for a possible scribe
// * onSwipeStart: callback function before the animation
// * onSwipeEnd: callback function after the animation
// * minDragDistance: minimum distance (in pixels) the user has to drag to trigger swipe
// * onSwipeStart: callback before page transition
// * onSwipeEnd: callback after page transition
// * onDragStart: called on drag start
// * onDrag: callback on drag
// * onDragEnd: callback on dragend
// * borderBetweenPages: if you need space between pages add a pixel value
// * duration
// * stopPropagation
// * afterInitialize called after the pages are size
// * preventDrag if want to prevent user interactions and only swipe manualy
// * onDragEnd: callback on drag end
// * afterInitialize: called after the pages are sized
// * keyboardNavigation: if you want to enable keyboard navigation
// * stopPropagation: prevent event propagation
// * itemsInPage: number of items in a page
// * scribe: pixel value for a possible scribe
// * page: number of the page to load on start
// * borderBetweenPages: space (in pixels) between pages
// * preventDrag: prevent user interactions and only swipe manually
// * disableScroll: prevent touch scroll

var

Expand Down