File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 186
186
} , options ) ;
187
187
188
188
//flag to avoid very fast sliding for landscape sliders
189
- var slideMoving = false ;
189
+ var slideMoving = false ;
190
190
191
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 ) / ) ;
192
192
var isTouch = ( ( 'ontouchstart' in window ) || ( navigator . msMaxTouchPoints > 0 ) || ( navigator . maxTouchPoints ) ) ;
228
228
* It changes the scroll bar visibility and the history of the site as a result.
229
229
*/
230
230
function setAutoScrolling ( value , type ) {
231
- //removing the transformation
231
+ //removing the transformation
232
232
if ( ! value ) {
233
233
silentScroll ( 0 ) ;
234
234
}
1747
1747
e . preventDefault ( ) ;
1748
1748
}
1749
1749
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
+
1750
1755
controlPressed = e . ctrlKey ;
1751
1756
1752
1757
keydownId = setTimeout ( function ( ) {
2636
2641
// The first section can have a negative value in iOS 10. Not quite sure why: -0.0142822265625
2637
2642
// that's why we round it to 0.
2638
2643
var roundedTop = Math . round ( top ) ;
2639
-
2644
+
2640
2645
if ( options . css3 && options . autoScrolling && ! options . scrollBar ) {
2641
2646
var translate3d = 'translate3d(0px, -' + roundedTop + 'px, 0px)' ;
2642
2647
transformContainer ( translate3d , false ) ;
You can’t perform that action at this time.
0 commit comments