Skip to content

Commit 40ec164

Browse files
committed
Updated readme.
1 parent ca8bb5b commit 40ec164

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ $(document).ready(function() {
108108
animateAnchor: true,
109109

110110
//events
111-
onLeave: function(index, direction){},
111+
onLeave: function(index, nextIndex, direction){},
112112
afterLoad: function(anchorLink, index){},
113113
afterRender: function(){},
114114
afterSlideLoad: function(anchorLink, index, slideAnchor, slideIndex){},
@@ -323,12 +323,13 @@ Example:
323323
});
324324
```
325325

326-
###onLeave (`index`, `direction`)
326+
###onLeave (`index`, `nextIndex`, `direction`)
327327
This callback is fired once the user leaves a section, in the transition to the new section.
328328

329329
Parameters:
330330

331331
- `index`: index of the leaving section. Starting from 1.
332+
- `nextIndex`: index of the coming section. Starting from 1.
332333
- `direction`: it will take the values `up` or `down` depending on the scrolling direction.
333334

334335
Example:

0 commit comments

Comments
 (0)