Skip to content

Commit

Permalink
- Fixed bug with onLeave index when using continuousVertical:true #…
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarotrigo committed Apr 1, 2014
1 parent 78a99d4 commit 689b79e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions jquery.fullPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* fullPage 1.8.4
* fullPage 1.8.5
* https://github.com/alvarotrigo/fullPage.js
* MIT licensed
*
Expand Down Expand Up @@ -582,6 +582,7 @@
var sectionIndex = element.index('.section');
var activeSlide = element.find('.slide.active');
var activeSection = $('.section.active');
var leavingSection = activeSection.index('.section') + 1;

//caching the value of isResizing at the momment the function is called
//because it will be checked later inside a setTimeout and the value might change
Expand Down Expand Up @@ -619,7 +620,6 @@
yMovement = getYmovement(element);
}

var leavingSection = activeSection.index('.section') + 1;

element.addClass('active').siblings().removeClass('active');

Expand Down
Loading

0 comments on commit 689b79e

Please sign in to comment.