|
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 | + var sectionMoving = false; |
190 | 191 |
|
191 | 192 | var isTouchDevice = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/);
|
192 | 193 | var isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0) || (navigator.maxTouchPoints));
|
|
228 | 229 | * It changes the scroll bar visibility and the history of the site as a result.
|
229 | 230 | */
|
230 | 231 | function setAutoScrolling(value, type){
|
231 |
| - //removing the transformation |
| 232 | + //removing the transformation |
232 | 233 | if(!value){
|
233 | 234 | silentScroll(0);
|
234 | 235 | }
|
|
1450 | 1451 | * Performs the vertical movement (by CSS3 or by jQuery)
|
1451 | 1452 | */
|
1452 | 1453 | function performMovement(v){
|
| 1454 | + sectionMoving = true; |
1453 | 1455 | // using CSS3 translate functionality
|
1454 | 1456 | if (options.css3 && options.autoScrolling && !options.scrollBar) {
|
1455 | 1457 |
|
|
1571 | 1573 | */
|
1572 | 1574 | function afterSectionLoads (v){
|
1573 | 1575 | continuousVerticalFixSectionOrder(v);
|
| 1576 | + sectionMoving = false; |
1574 | 1577 |
|
1575 | 1578 | //callback (afterLoad) if the site is not just resizing and readjusting the slides
|
1576 | 1579 | $.isFunction(options.afterLoad) && !v.localIsResizing && options.afterLoad.call(v.element, v.anchorLink, (v.sectionIndex + 1));
|
|
1747 | 1750 | e.preventDefault();
|
1748 | 1751 | }
|
1749 | 1752 |
|
| 1753 | + if (sectionMoving) return; |
| 1754 | + |
1750 | 1755 | controlPressed = e.ctrlKey;
|
1751 | 1756 |
|
1752 | 1757 | keydownId = setTimeout(function(){
|
|
2634 | 2639 | // The first section can have a negative value in iOS 10. Not quite sure why: -0.0142822265625
|
2635 | 2640 | // that's why we round it to 0.
|
2636 | 2641 | var roundedTop = Math.round(top);
|
2637 |
| - |
| 2642 | + |
2638 | 2643 | if (options.css3 && options.autoScrolling && !options.scrollBar){
|
2639 | 2644 | var translate3d = 'translate3d(0px, -' + roundedTop + 'px, 0px)';
|
2640 | 2645 | transformContainer(translate3d, false);
|
|
0 commit comments