Skip to content

Commit 9e28184

Browse files
authoredJan 17, 2025
Merge pull request #4683 from alvarotrigo/dev
Merging dev branch 4.0.32
2 parents 1f09830 + b2031b9 commit 9e28184

21 files changed

+69
-27
lines changed
 

‎CONTRIBUTING.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Contributing to fullpage.js
2+
3+
Your contributions to the project are very welcome. If you would like to fix a bug or propose a new feature, you can submit a Pull Request.
4+
5+
Please make sure you follow these points:
6+
7+
- Use the `dev` branch to commit your pull requests.
8+
- Do not edit files in `dist/` directory
9+
- If the pull request is related with an issue, please name the issue number in the comments (eg: #16)
10+
- Please prefer clarity over brevity in all cases (variable names, conditions, functions...)
11+
- Describe the problem in the Pull Request description (of course you would do it, why do I mention that?)
12+
13+
Thank you for your commitment!

‎README.md

+1-1
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.31-brightgreen.svg)
22+
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.32-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)

‎dist/fullpage.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* fullPage 4.0.31
2+
* fullPage 4.0.32
33
* https://github.com/alvarotrigo/fullPage.js
44
*
55
* @license GPLv3 for open source use only
@@ -246,6 +246,7 @@ html.fp-enabled,
246246

247247
body:not(.fp-responsive) .fp-overflow{
248248
max-height: 100vh;
249+
max-height: 100dvh; /* fix for new browsers */
249250
}
250251

251252
/* No scrollable when using auto-height */

‎dist/fullpage.extensions.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/fullpage.js

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* fullPage 4.0.31
2+
* fullPage 4.0.32
33
* https://github.com/alvarotrigo/fullPage.js
44
*
55
* @license GPLv3 for open source use only
@@ -5364,13 +5364,25 @@
53645364
}); // No section is fitting the viewport? Let's fix that!
53655365

53665366
if (!fixedSections.length) {
5367-
fitToSection();
5367+
if (isTouchDevice && isFormElementFocused()) {
5368+
// Exit early to avoid fixing the section while interacting with form elements
5369+
return;
5370+
} else {
5371+
fitToSection();
5372+
}
53685373
}
53695374
}, getOptions().fitToSectionDelay);
53705375
}
53715376
}
53725377
}
53735378

5379+
function isFormElementFocused() {
5380+
var focusedElement = document.activeElement;
5381+
if (!focusedElement) return false; // Include only elements that trigger the keyboard on mobile
5382+
5383+
return focusedElement.matches('input, textarea');
5384+
}
5385+
53745386
function onDestroy$1() {
53755387
clearTimeout(g_scrollId);
53765388
clearTimeout(g_scrollId2);
@@ -5540,7 +5552,7 @@
55405552
});
55415553
});
55425554
var t = ["-"];
5543-
var n = "\x32\x30\x32\x34\x2d\x31\x30\x2d\x32\x38".split("-"),
5555+
var n = "\x32\x30\x32\x35\x2d\x30\x2d\x31\x37".split("-"),
55445556
e = new Date(n[0], n[1], n[2]),
55455557
r = ["se", "licen", "-", "v3", "l", "gp"];
55465558

@@ -6001,7 +6013,7 @@
60016013
}; //public functions
60026014

60036015

6004-
FP.version = '4.0.31';
6016+
FP.version = '4.0.32';
60056017
FP.test = Object.assign(FP.test, {
60066018
top: '0px',
60076019
translate3d: 'translate3d(0px, 0px, 0px)',

‎dist/fullpage.min.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.