Skip to content

Commit 0d45ac1

Browse files
authored
Merge pull request #4515 from alvarotrigo/dev
Merging dev branch 4.0.17
2 parents 216d241 + 1f1b404 commit 0d45ac1

File tree

21 files changed

+54
-45
lines changed

21 files changed

+54
-45
lines changed

README.md

Lines changed: 1 addition & 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.16-brightgreen.svg)
21+
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.17-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)

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.16
2+
* fullPage 4.0.17
33
* https://github.com/alvarotrigo/fullPage.js
44
*
55
* @license GPLv3 for open source use only

dist/fullpage.extensions.min.js

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

dist/fullpage.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* fullPage 4.0.16
2+
* fullPage 4.0.17
33
* https://github.com/alvarotrigo/fullPage.js
44
*
55
* @license GPLv3 for open source use only
@@ -777,6 +777,10 @@
777777
} while (!matches(item, topParentSelector));
778778

779779
return parents;
780+
}
781+
function isInsideInput() {
782+
var activeElement = doc.activeElement;
783+
return matches(activeElement, 'textarea') || matches(activeElement, 'input') || matches(activeElement, 'select') || getAttr(activeElement, 'contentEditable') == "true" || getAttr(activeElement, 'contentEditable') == '';
780784
} //utils are public, so we can use it wherever we want
781785
// @ts-ignore
782786

@@ -871,7 +875,8 @@
871875
getLast: getLast,
872876
getAverage: getAverage,
873877
setSrc: setSrc,
874-
getParentsUntil: getParentsUntil
878+
getParentsUntil: getParentsUntil,
879+
isInsideInput: isInsideInput
875880
});
876881

877882
function _typeof(obj) {
@@ -2863,9 +2868,13 @@
28632868
}
28642869
},
28652870
preventScrollWithKeyboard: function preventScrollWithKeyboard(e) {
2866-
if (!scrollOverflowHandler.isInnerScrollAllowed) {
2867-
preventDefault(e);
2868-
return false;
2871+
if (!isInsideInput() && getOptions().keyboardScrolling) {
2872+
var directionKeys = [38, 33, 32, 40, 34, 36, 35];
2873+
2874+
if (directionKeys.indexOf(e.keyCode) > -1 && !scrollOverflowHandler.isInnerScrollAllowed) {
2875+
preventDefault(e);
2876+
return false;
2877+
}
28692878
}
28702879
},
28712880
keyUpHandler: function keyUpHandler() {
@@ -4221,11 +4230,6 @@
42214230
clearTimeout(g_keydownId);
42224231
docRemoveEvent('keydown', keydownHandler);
42234232
docRemoveEvent('keyup', keyUpHandler);
4224-
}
4225-
4226-
function isInsideInput() {
4227-
var activeElement = doc.activeElement;
4228-
return matches(activeElement, 'textarea') || matches(activeElement, 'input') || matches(activeElement, 'select') || getAttr(activeElement, 'contentEditable') == "true" || getAttr(activeElement, 'contentEditable') == '';
42294233
} //Sliding with arrow keys, both, vertical and horizontal
42304234

42314235

@@ -5466,7 +5470,7 @@
54665470
});
54675471
});
54685472
var t = ["-"];
5469-
var n = "\x32\x30\x32\x33\x2d\x31\x2d\x32".split("-"),
5473+
var n = "\x32\x30\x32\x33\x2d\x31\x2d\x31\x36".split("-"),
54705474
e = new Date(n[0], n[1], n[2]),
54715475
r = ["se", "licen", "-", "v3", "l", "gp"];
54725476

@@ -5890,7 +5894,7 @@
58905894
}; //public functions
58915895

58925896

5893-
FP.version = '4.0.16';
5897+
FP.version = '4.0.17';
58945898
FP.test = Object.assign(FP.test, {
58955899
top: '0px',
58965900
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: 1 addition & 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.16-brightgreen.svg)
21+
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.17-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)

lang/chinese/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
---
1919

20-
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.16,2-brightgreen.svg)
20+
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.17,2-brightgreen.svg)
2121
[![License](https://img.shields.io/badge/License-GPL-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
2222
[![PayPal Donate](https://img.shields.io/badge/donate-PayPal.me-ff69b4.svg)](https://www.paypal.me/alvarotrigo/9.95)
2323
[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/fullpage.js/badge?style=rounded)](https://www.jsdelivr.com/package/npm/fullpage.js)

lang/french/README.md

Lines changed: 1 addition & 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.16-brightgreen.svg)
21+
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.17-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)

0 commit comments

Comments
 (0)