Skip to content

Commit 2e49e54

Browse files
committed
- Updating dist files
1 parent ee2c00d commit 2e49e54

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

dist/fullpage.extensions.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/fullpage.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,7 @@
11591159
touchSensitivity: 5,
11601160
touchWrapper: null,
11611161
bigSectionsDestination: null,
1162+
adjustOnNavChange: true,
11621163
//Accessibility
11631164
keyboardScrolling: true,
11641165
animateAnchor: true,
@@ -4890,7 +4891,9 @@
48904891

48914892
function bindEvents$6() {
48924893
// Setting VH correctly in mobile devices
4893-
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...
48944897

48954898
windowAddEvent('resize', resizeHandler);
48964899
EventEmitter.on(events.onDestroy, onDestroy$3);
@@ -4967,10 +4970,13 @@
49674970
setState({
49684971
isResizing: true
49694972
});
4970-
setSectionsHeight('');
49714973

4972-
if (!getOptions().autoScrolling && !state.isBeyondFullpage) {
4973-
setVhUnits();
4974+
if (!isTouchDevice || getOptions().adjustOnNavChange) {
4975+
setSectionsHeight('');
4976+
4977+
if (!getOptions().autoScrolling && !state.isBeyondFullpage) {
4978+
setVhUnits();
4979+
}
49744980
}
49754981

49764982
EventEmitter.emit(events.contentChanged);

dist/fullpage.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)