Skip to content

Commit

Permalink
Merge pull request alvarotrigo#247 from jguffey/patch-1
Browse files Browse the repository at this point in the history
Direction parameter in `onSlideLeave` and `onSlideLoad` callbacks can now return "none" .
  • Loading branch information
alvarotrigo committed Mar 27, 2014
2 parents 9fb2a4a + 5998bc2 commit c0e78c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jquery.fullPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,10 @@
* Retuns `right` or `left` depending on the scrolling movement to reach its destination
* from the current slide.
*/
function getXmovement(fromIndex, toIndex){
function getXmovement(fromIndex, toIndex){
if( fromIndex == toIndex){
return 'none'
}
if(fromIndex > toIndex){
return 'left';
}
Expand Down

0 comments on commit c0e78c0

Please sign in to comment.