continue;
}
- // Vertical stacks are not centered since their section
+ // Vertical stacks are not centered since their section
// children will be
if( slide.classList.contains( 'stack' ) ) {
slide.style.top = 0;
}
/**
- * Retrieves the vertical index which was stored using
+ * Retrieves the vertical index which was stored using
* #setPreviousVerticalIndex() or 0 if no previous index
* exists.
*
var slideAutoSlide = slides[index].getAttribute( 'data-autoslide' );
if( slideAutoSlide ) {
autoSlide = parseInt( slideAutoSlide, 10 );
- }
+ }
else {
autoSlide = config.autoSlide;
}
var triggered = true;
+ // while paused only allow "unpausing" keyboard events (b and .)
+ if (isPaused() && [66,190,191].indexOf(event.keyCode) === -1 ) {
+ return false;
+ }
+
switch( event.keyCode ) {
// p, page up
case 80: case 33: navigatePrev(); break;