|
294 | 294 | */
|
295 | 295 | function _previousStep() {
|
296 | 296 | this._direction = 'backward';
|
297 |
| - |
| 297 | + |
298 | 298 | if (this._currentStep === 0) {
|
299 | 299 | return false;
|
300 | 300 | }
|
|
317 | 317 | function _exitIntro(targetElement) {
|
318 | 318 | //remove overlay layer from the page
|
319 | 319 | var overlayLayer = targetElement.querySelector('.introjs-overlay');
|
320 |
| - |
| 320 | + |
321 | 321 | //return if intro already completed or skipped
|
322 | 322 | if (overlayLayer == null) {
|
323 | 323 | return;
|
|
363 | 363 | } else if (document.detachEvent) { //IE
|
364 | 364 | document.detachEvent('onkeydown', this._onKeyDown);
|
365 | 365 | }
|
366 |
| - |
| 366 | + |
367 | 367 | //set the step to zero
|
368 | 368 | this._currentStep = undefined;
|
369 | 369 | }
|
|
423 | 423 | arrowLayer.className = 'introjs-arrow left';
|
424 | 424 | break;
|
425 | 425 | case 'left':
|
426 |
| - if (this._options.showStepNumbers == true) { |
| 426 | + if (this._options.showStepNumbers == true) { |
427 | 427 | tooltipLayer.style.top = '15px';
|
428 | 428 | }
|
429 | 429 | tooltipLayer.style.right = (_getOffset(targetElement).width + 20) + 'px';
|
|
712 | 712 | while (parentElm != null) {
|
713 | 713 | if (parentElm.tagName.toLowerCase() === 'body') break;
|
714 | 714 |
|
715 |
| - //fix The Stacking Contenxt problem. |
| 715 | + //fix The Stacking Contenxt problem. |
716 | 716 | //More detail: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Understanding_z_index/The_stacking_context
|
717 | 717 | var zIndex = _getPropValue(parentElm, 'z-index');
|
718 | 718 | var opacity = parseFloat(_getPropValue(parentElm, 'opacity'));
|
719 |
| - if (/[0-9]+/.test(zIndex) || opacity < 1) { |
| 719 | + var transform = _getPropValue(parentElm, 'transform') || _getPropValue(parentElm, '-webkit-transform') || _getPropValue(parentElm, '-moz-transform') || _getPropValue(parentElm, '-ms-transform') || _getPropValue(parentElm, '-o-transform'); |
| 720 | + if (/[0-9]+/.test(zIndex) || opacity < 1 || transform !== 'none') { |
720 | 721 | parentElm.className += ' introjs-fixParent';
|
721 | 722 | }
|
722 |
| - |
| 723 | + |
723 | 724 | parentElm = parentElm.parentNode;
|
724 | 725 | }
|
725 | 726 |
|
|
738 | 739 | window.scrollBy(0, bottom + 100); // 70px + 30px padding from edge to look nice
|
739 | 740 | }
|
740 | 741 | }
|
741 |
| - |
| 742 | + |
742 | 743 | if (typeof (this._introAfterChangeCallback) !== 'undefined') {
|
743 | 744 | this._introAfterChangeCallback.call(this, targetElement.element);
|
744 | 745 | }
|
|
0 commit comments