Skip to content

Commit

Permalink
- Update dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarotrigo committed May 29, 2023
1 parent 8ee9e41 commit ab2ccfa
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/fullpage.extensions.min.js

Large diffs are not rendered by default.

29 changes: 22 additions & 7 deletions dist/fullpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,8 @@
var WRAPPER = 'fullpage-wrapper';
var WRAPPER_SEL = '.' + WRAPPER; // slimscroll

var SCROLLABLE = 'fp-scrollable';

var RESPONSIVE = 'fp-responsive';
var NO_TRANSITION = 'fp-notransition';
var DESTROYED = 'fp-destroyed';
Expand Down Expand Up @@ -2858,6 +2860,7 @@
}

function onDestroy$7() {
EventEmitter.removeListener(events.onAfterRenderNoAnchor, afterRender);
docRemoveEvent('keyup', scrollOverflowHandler.keyUpHandler);
}

Expand Down Expand Up @@ -4172,7 +4175,7 @@
if (section == null) return;
var slideElem = getSlideByAnchor(slideAnchor, section); //we need to scroll to the section and then to the slide

if (section.anchor !== state.lastScrolledDestiny && !hasClass(section.item, ACTIVE)) {
if ((!section.anchor || section.anchor !== state.lastScrolledDestiny) && !hasClass(section.item, ACTIVE)) {
scrollPage(section, function () {
scrollSlider(slideElem);
});
Expand Down Expand Up @@ -4392,6 +4395,12 @@
function preventAndFocusFirst(e) {
preventDefault(e);
return focusableElements[0] ? focusableElements[0].focus() : null;
} // deactivating tab while scrolling #4550


if (!state.canScroll) {
preventDefault(e);
return;
} //outside any section or slide? Let's not hijack the tab!


Expand Down Expand Up @@ -5559,7 +5568,12 @@
var section = sections[i];
var slides = section.allSlidesItems; //caching the original styles to add them back on destroy('all')

section.item.setAttribute('data-fp-styles', getAttr(section.item, 'style'));
var originalStyles = getAttr(section.item, 'style');

if (originalStyles) {
section.item.setAttribute('data-fp-styles', originalStyles);
}

styleSection(section);
styleMenu(section); // if there's any slide

Expand Down Expand Up @@ -5704,9 +5718,9 @@
'height': ''
}); // remove .fp-enabled class

removeClass($html, ENABLED); // remove .fp-responsive class
removeClass($html, ENABLED); // remove .fp-responsive class & .fp-scrollable

removeClass($body, RESPONSIVE); // remove all of the .fp-viewing- classes
removeClass($body, RESPONSIVE + ' ' + SCROLLABLE); // remove all of the .fp-viewing- classes

$body.className.split(/\s+/).forEach(function (className) {
if (className.indexOf(VIEWING_PREFIX) === 0) {
Expand All @@ -5719,11 +5733,11 @@
scrollOverflowHandler.destroyWrapper(item);
}

removeClass(item, TABLE + ' ' + ACTIVE + ' ' + COMPLETELY);
removeClass(item, TABLE + ' ' + ACTIVE + ' ' + COMPLETELY + ' ' + IS_OVERFLOW);
var previousStyles = getAttr(item, 'data-fp-styles');

if (previousStyles) {
item.setAttribute('style', getAttr(item, 'data-fp-styles'));
item.setAttribute('style', previousStyles);
} //removing anchors if they were not set using the HTML markup


Expand All @@ -5744,7 +5758,8 @@
css(getContainer(), {
'-webkit-transition': 'none',
'transition': 'none'
}); //scrolling the page to the top with no animation
});
removeClass(getContainer(), WRAPPER); //scrolling the page to the top with no animation

win.scrollTo(0, 0); //removing selectors

Expand Down
2 changes: 1 addition & 1 deletion dist/fullpage.min.js

Large diffs are not rendered by default.

0 comments on commit ab2ccfa

Please sign in to comment.