File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 187
187
188
188
//flag to avoid very fast sliding for landscape sliders
189
189
var slideMoving = false ;
190
- var sectionMoving = false ;
191
190
192
191
var isTouchDevice = navigator . userAgent . match ( / ( i P h o n e | i P o d | i P a d | A n d r o i d | p l a y b o o k | s i l k | B l a c k B e r r y | B B 1 0 | W i n d o w s P h o n e | T i z e n | B a d a | w e b O S | I E M o b i l e | O p e r a M i n i ) / ) ;
193
192
var isTouch = ( ( 'ontouchstart' in window ) || ( navigator . msMaxTouchPoints > 0 ) || ( navigator . maxTouchPoints ) ) ;
1451
1450
* Performs the vertical movement (by CSS3 or by jQuery)
1452
1451
*/
1453
1452
function performMovement ( v ) {
1454
- sectionMoving = true ;
1455
1453
// using CSS3 translate functionality
1456
1454
if ( options . css3 && options . autoScrolling && ! options . scrollBar ) {
1457
1455
1573
1571
*/
1574
1572
function afterSectionLoads ( v ) {
1575
1573
continuousVerticalFixSectionOrder ( v ) ;
1576
- sectionMoving = false ;
1577
1574
1578
1575
//callback (afterLoad) if the site is not just resizing and readjusting the slides
1579
1576
$ . isFunction ( options . afterLoad ) && ! v . localIsResizing && options . afterLoad . call ( v . element , v . anchorLink , ( v . sectionIndex + 1 ) ) ;
1750
1747
e . preventDefault ( ) ;
1751
1748
}
1752
1749
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
+ }
1754
1754
1755
1755
controlPressed = e . ctrlKey ;
1756
1756
You can’t perform that action at this time.
0 commit comments