Skip to content

Commit 5912fca

Browse files
committed
Change to Alvaro’s proposal
1 parent 2c131b0 commit 5912fca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jquery.fullPage.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@
187187

188188
//flag to avoid very fast sliding for landscape sliders
189189
var slideMoving = false;
190-
var sectionMoving = false;
191190

192191
var isTouchDevice = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/);
193192
var isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0) || (navigator.maxTouchPoints));
@@ -1451,7 +1450,6 @@
14511450
* Performs the vertical movement (by CSS3 or by jQuery)
14521451
*/
14531452
function performMovement(v){
1454-
sectionMoving = true;
14551453
// using CSS3 translate functionality
14561454
if (options.css3 && options.autoScrolling && !options.scrollBar) {
14571455

@@ -1573,7 +1571,6 @@
15731571
*/
15741572
function afterSectionLoads (v){
15751573
continuousVerticalFixSectionOrder(v);
1576-
sectionMoving = false;
15771574

15781575
//callback (afterLoad) if the site is not just resizing and readjusting the slides
15791576
$.isFunction(options.afterLoad) && !v.localIsResizing && options.afterLoad.call(v.element, v.anchorLink, (v.sectionIndex + 1));
@@ -1750,7 +1747,10 @@
17501747
e.preventDefault();
17511748
}
17521749

1753-
if (sectionMoving) return;
1750+
//do nothing if we can not scroll or we are not using horizotnal key arrows.
1751+
if(!canScroll && [37,39].indexOf(e.which) < 0){
1752+
return;
1753+
}
17541754

17551755
controlPressed = e.ctrlKey;
17561756

0 commit comments

Comments
 (0)