|
1 | 1 | /*!
|
2 |
| -* fullPage 4.0.32 |
| 2 | +* fullPage 4.0.33 |
3 | 3 | * https://github.com/alvarotrigo/fullPage.js
|
4 | 4 | *
|
5 | 5 | * @license GPLv3 for open source use only
|
|
1159 | 1159 | touchSensitivity: 5,
|
1160 | 1160 | touchWrapper: null,
|
1161 | 1161 | bigSectionsDestination: null,
|
| 1162 | + adjustOnNavChange: true, |
1162 | 1163 | //Accessibility
|
1163 | 1164 | keyboardScrolling: true,
|
1164 | 1165 | animateAnchor: true,
|
|
2062 | 2063 | function slideArrowHandler() {
|
2063 | 2064 | /*jshint validthis:true */
|
2064 | 2065 | var section = closest(this, SECTION_SEL);
|
| 2066 | + var isPrevArrow = hasClass(this, SLIDES_PREV) || closest(this, SLIDES_PREV); |
2065 | 2067 | /*jshint validthis:true */
|
2066 | 2068 |
|
2067 |
| - if (closest(this, SLIDES_PREV)) { |
| 2069 | + if (isPrevArrow) { |
2068 | 2070 | if (getIsScrollAllowed().m.left) {
|
2069 | 2071 | setState({
|
2070 | 2072 | scrollTrigger: 'slideArrow'
|
|
4889 | 4891 |
|
4890 | 4892 | function bindEvents$6() {
|
4891 | 4893 | // Setting VH correctly in mobile devices
|
4892 |
| - resizeHandler(); //when resizing the site, we adjust the heights of the sections, slimScroll... |
| 4894 | + resizeHandler(); // Initial set of VH units |
| 4895 | + |
| 4896 | + setVhUnits(); //when resizing the site, we adjust the heights of the sections, slimScroll... |
4893 | 4897 |
|
4894 | 4898 | windowAddEvent('resize', resizeHandler);
|
4895 | 4899 | EventEmitter.on(events.onDestroy, onDestroy$3);
|
|
4966 | 4970 | setState({
|
4967 | 4971 | isResizing: true
|
4968 | 4972 | });
|
4969 |
| - setSectionsHeight(''); |
4970 | 4973 |
|
4971 |
| - if (!getOptions().autoScrolling && !state.isBeyondFullpage) { |
4972 |
| - setVhUnits(); |
| 4974 | + if (!isTouchDevice || getOptions().adjustOnNavChange) { |
| 4975 | + setSectionsHeight(''); |
| 4976 | + |
| 4977 | + if (!getOptions().autoScrolling && !state.isBeyondFullpage) { |
| 4978 | + setVhUnits(); |
| 4979 | + } |
4973 | 4980 | }
|
4974 | 4981 |
|
4975 | 4982 | EventEmitter.emit(events.contentChanged);
|
|
5552 | 5559 | });
|
5553 | 5560 | });
|
5554 | 5561 | var t = ["-"];
|
5555 |
| - var n = "\x32\x30\x32\x35\x2d\x30\x2d\x31\x37".split("-"), |
| 5562 | + var n = "\x32\x30\x32\x35\x2d\x30\x2d\x32\x37".split("-"), |
5556 | 5563 | e = new Date(n[0], n[1], n[2]),
|
5557 | 5564 | r = ["se", "licen", "-", "v3", "l", "gp"];
|
5558 | 5565 |
|
|
6013 | 6020 | }; //public functions
|
6014 | 6021 |
|
6015 | 6022 |
|
6016 |
| - FP.version = '4.0.32'; |
| 6023 | + FP.version = '4.0.33'; |
6017 | 6024 | FP.test = Object.assign(FP.test, {
|
6018 | 6025 | top: '0px',
|
6019 | 6026 | translate3d: 'translate3d(0px, 0px, 0px)',
|
|
0 commit comments