Skip to content

Commit 17050b6

Browse files
authored
Merge pull request #4684 from alvarotrigo/dev
Merging dev branch 4.0.33
2 parents 9e28184 + 2e49e54 commit 17050b6

22 files changed

+88
-32
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
---
2121

22-
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.32-brightgreen.svg)
22+
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.33-brightgreen.svg)
2323
[![License](https://img.shields.io/badge/License-GPL-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
2424
[![PayPal Donate](https://img.shields.io/badge/donate-PayPal.me-ff69b4.svg)](https://www.paypal.me/alvarotrigo/9.95)
2525
[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/fullpage.js/badge?style=rounded)](https://www.jsdelivr.com/package/npm/fullpage.js)
@@ -223,6 +223,7 @@ var myFullpage = new fullpage('#fullpage', {
223223
skipIntermediateItems: false,
224224
touchSensitivity: 15,
225225
bigSectionsDestination: null,
226+
adjustOnNavChange: true,
226227

227228
// Accessibility
228229
keyboardScrolling: true,
@@ -494,6 +495,11 @@ It requires the file `vendors/easings.min.js` or [jQuery UI](https://jqueryui.co
494495

495496
(default `null`) [Demo](https://codepen.io/alvarotrigo/pen/vYLdMrx) Defines how to scroll to a section which height is bigger than the viewport and when not using `scrollOverflow:true`. (Read [how to create smaller or bigger sections](https://github.com/alvarotrigo/fullPage.js#creating-smaller-or-bigger-sections)). By default fullPage.js scrolls to the top if you come from a section above the destination one and to the bottom if you come from a section below the destination one. Possible values are `top`, `bottom`, `null`.
496497

498+
### adjustOnNavChange
499+
(default `true`)
500+
Defines whether fullPage.js adjusts the height of sections when the mobile navigation or address bar changes size or toggles visibility. If set to `false`, sections will not appear as full-height when the navigation bar shrinks or hides.
501+
502+
497503
### keyboardScrolling
498504

499505
(default `true`) Defines if the content can be navigated using the keyboard.

dist/fullpage.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* fullPage 4.0.32
2+
* fullPage 4.0.33
33
* https://github.com/alvarotrigo/fullPage.js
44
*
55
* @license GPLv3 for open source use only

dist/fullpage.extensions.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/fullpage.js

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* fullPage 4.0.32
2+
* fullPage 4.0.33
33
* https://github.com/alvarotrigo/fullPage.js
44
*
55
* @license GPLv3 for open source use only
@@ -1159,6 +1159,7 @@
11591159
touchSensitivity: 5,
11601160
touchWrapper: null,
11611161
bigSectionsDestination: null,
1162+
adjustOnNavChange: true,
11621163
//Accessibility
11631164
keyboardScrolling: true,
11641165
animateAnchor: true,
@@ -2062,9 +2063,10 @@
20622063
function slideArrowHandler() {
20632064
/*jshint validthis:true */
20642065
var section = closest(this, SECTION_SEL);
2066+
var isPrevArrow = hasClass(this, SLIDES_PREV) || closest(this, SLIDES_PREV);
20652067
/*jshint validthis:true */
20662068

2067-
if (closest(this, SLIDES_PREV)) {
2069+
if (isPrevArrow) {
20682070
if (getIsScrollAllowed().m.left) {
20692071
setState({
20702072
scrollTrigger: 'slideArrow'
@@ -4889,7 +4891,9 @@
48894891

48904892
function bindEvents$6() {
48914893
// 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...
48934897

48944898
windowAddEvent('resize', resizeHandler);
48954899
EventEmitter.on(events.onDestroy, onDestroy$3);
@@ -4966,10 +4970,13 @@
49664970
setState({
49674971
isResizing: true
49684972
});
4969-
setSectionsHeight('');
49704973

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+
}
49734980
}
49744981

49754982
EventEmitter.emit(events.contentChanged);
@@ -5552,7 +5559,7 @@
55525559
});
55535560
});
55545561
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("-"),
55565563
e = new Date(n[0], n[1], n[2]),
55575564
r = ["se", "licen", "-", "v3", "l", "gp"];
55585565

@@ -6013,7 +6020,7 @@
60136020
}; //public functions
60146021

60156022

6016-
FP.version = '4.0.32';
6023+
FP.version = '4.0.33';
60176024
FP.test = Object.assign(FP.test, {
60186025
top: '0px',
60196026
translate3d: 'translate3d(0px, 0px, 0px)',

dist/fullpage.min.css

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.min.css.map

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.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lang/brazilian-portuguese/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
---
2121

22-
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.32-brightgreen.svg)
22+
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.33-brightgreen.svg)
2323
[![License](https://img.shields.io/badge/License-GPL-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
2424
[![PayPal Donate](https://img.shields.io/badge/donate-PayPal.me-ff69b4.svg)](https://www.paypal.me/alvarotrigo/9.95)
2525
[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/fullpage.js/badge?style=rounded)](https://www.jsdelivr.com/package/npm/fullpage.js)
@@ -223,6 +223,7 @@ var myFullpage = new fullpage('#fullpage', {
223223
scrollOverflowReset: false,
224224
touchSensitivity: 15,
225225
bigSectionsDestination: null,
226+
adjustOnNavChange: true,
226227

227228
// Acessibilidade
228229
keyboardScrolling: true,
@@ -471,6 +472,10 @@ the fitting by the configured milliseconds.
471472
### bigSectionsDestination:
472473
(padrão `null`) [Demonstração](https://codepen.io/alvarotrigo/pen/vYLdMrx) Define como rolar para uma seção cuja altura é maior que a viewport e quando não estiver usando `scrollOverflow: verdadeiro`. (Leia [como criar seções menores ou maiores](https://github.com/alvarotrigo/fullPage.js/tree/master/lang/brazilian-portuguese/#criando-seções-maiores-ou-menores)). Por padrão, fullPage.js rola para o topo se você vier de uma seção acima do destino e para baixo se você vier de uma seção abaixo do destino. Os valores possíveis são `top`, `bottom`, `null`.
473474

475+
### adjustOnNavChange
476+
(padrão `true`)
477+
Define se o fullPage.js ajusta a altura das seções quando a barra de navegação ou a barra de endereço no celular muda de tamanho ou alterna sua visibilidade. Se definido como false, as seções não aparecerão com altura total quando a barra de navegação encolher ou desaparecer.
478+
474479
### keyboardScrolling:
475480
(padrão `true`) Define se o conteúdo pode ser navegado usando o teclado.
476481

lang/chinese/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
---
2020

21-
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.32,2-brightgreen.svg)
21+
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.33,2-brightgreen.svg)
2222
[![License](https://img.shields.io/badge/License-GPL-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
2323
[![PayPal Donate](https://img.shields.io/badge/donate-PayPal.me-ff69b4.svg)](https://www.paypal.me/alvarotrigo/9.95)
2424
[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/fullpage.js/badge?style=rounded)](https://www.jsdelivr.com/package/npm/fullpage.js)
@@ -218,6 +218,7 @@ var myFullpage = new fullpage('#fullpage', {
218218
scrollOverflowReset: false,
219219
touchSensitivity: 15,
220220
bigSectionsDestination: null,
221+
adjustOnNavChange: true,
221222

222223
// 可访问
223224
keyboardScrolling: true,
@@ -466,6 +467,10 @@ new fullpage('#fullpage', {
466467
### bigSectionsDestination
467468
(默认 `null`[示例](https://codepen.io/alvarotrigo/pen/vYLdMrx) 定义如何滚动到超出视图的 section。 默认情况下,如果此section 在目标视图的顶部,fullPage.js 将滚动到顶部,如果此 section 在目标视图的底部,则会滚动到底部。 可选的值是 `top``bottom``null`
468469

470+
### adjustOnNavChange
471+
((默认 `true`)
472+
定义当移动设备上的导航栏或地址栏更改大小或切换可见性时,fullPage.js 是否调整部分的高度。如果设置为 `false`,当导航栏缩小或隐藏时,部分将不会显示为全高度。
473+
469474
### keyboardScrolling
470475
(默认为 `true` )定义是否可以使用键盘进行内容滑动。
471476

lang/french/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
---
2121

22-
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.32-brightgreen.svg)
22+
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.33-brightgreen.svg)
2323
[![License](https://img.shields.io/badge/License-GPL-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
2424
[![PayPal Donate](https://img.shields.io/badge/donate-PayPal.me-ff69b4.svg)](https://www.paypal.me/alvarotrigo/9.95)
2525
[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/fullpage.js/badge?style=rounded)](https://www.jsdelivr.com/package/npm/fullpage.js)
@@ -226,6 +226,7 @@ var myFullpage = new fullpage('#fullpage', {
226226
scrollOverflowReset: false,
227227
touchSensitivity: 15,
228228
bigSectionsDestination: null,
229+
adjustOnNavChange: true,
229230

230231
// Accessibilité
231232
keyboardScrolling: true,
@@ -474,6 +475,9 @@ new fullpage('#fullpage', {
474475
### bigSectionsDestination
475476
(défaut `null`) Définit comment faire défiler jusqu'à une section dont la taille est supérieure à celle de la fenêtre. Par défaut, fullPage.js fait défiler vers le haut si vous venez d'une section située au-dessus de celle de destination et vers le bas si vous venez d'une section située au-dessous de celle de destination. Les valeurs possibles sont `haut`,`bas` et `null`.
476477

478+
### adjustOnNavChange
479+
(défaut `true`)
480+
Définit si fullPage.js ajuste la hauteur des sections lorsque la barre de navigation ou la barre d'adresse mobile change de taille ou alterne sa visibilité. Si défini sur `false`, les sections n’apparaîtront pas en pleine hauteur lorsque la barre de navigation se réduit ou disparaît.
477481

478482
### KeyboardScrolling
479483
(défaut `true`) Définit si le contenu peut être navigué à l'aide du clavier.

0 commit comments

Comments
 (0)