Skip to content

Commit 7104721

Browse files
authored
Merge pull request #3188 from alvarotrigo/dev
Merging dev branch 2.9.7
2 parents c0019fb + 215a433 commit 7104721

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+9286
-889
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
<p align="center">
66
<span>English</span> |
7-
<a href="https://github.com/alvarotrigo/fullPage.js/tree/master/lang/spanish#fullpagejs">Spanish</a> |
8-
<a href="https://github.com/alvarotrigo/fullPage.js/tree/master/lang/russian#fullpagejs">Russian</a> |
9-
<a href="https://github.com/alvarotrigo/fullPage.js/tree/master/lang/chinese#fullpagejs">Chinese</a> |
10-
<a href="https://github.com/alvarotrigo/fullPage.js/tree/master/lang/korean#fullpagejs">Korean</a>
7+
<a href="https://github.com/alvarotrigo/fullPage.js/tree/master/lang/spanish#fullpagejs">Español</a> |
8+
<a href="https://github.com/alvarotrigo/fullPage.js/tree/master/lang/russian#fullpagejs">Pусский</a> |
9+
<a href="https://github.com/alvarotrigo/fullPage.js/tree/master/lang/chinese#fullpagejs">中文</a> |
10+
<a href="https://github.com/alvarotrigo/fullPage.js/tree/master/lang/korean#fullpagejs">한국어</a>
1111
</p>
1212

1313
---
1414

15-
![fullPage.js version](http://img.shields.io/badge/fullPage.js-v2.9.6-brightgreen.svg)
15+
![fullPage.js version](http://img.shields.io/badge/fullPage.js-v2.9.7-brightgreen.svg)
1616
[![License](http://img.shields.io/badge/License-MIT-blue.svg)](http://opensource.org/licenses/MIT)
1717
[![PayPal Donate](https://img.shields.io/badge/donate-PayPal.me-ff69b4.svg)](https://www.paypal.me/alvarotrigo/9.95)
1818
[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/fullpage.js/badge?style=rounded)](https://www.jsdelivr.com/package/npm/fullpage.js)
@@ -52,6 +52,7 @@ Customizations of the library and urgent changes are available upon request for
5252
- [Resources](https://github.com/alvarotrigo/fullPage.js#resources)
5353
- [Who is using fullpage.js](https://github.com/alvarotrigo/fullPage.js#who-is-using-fullpagejs)
5454
- [Donations](https://github.com/alvarotrigo/fullPage.js#donations)
55+
- [Sponsors](https://github.com/alvarotrigo/fullPage.js#sponsors)
5556
- [License](https://github.com/alvarotrigo/fullPage.js#license)
5657

5758
## Introduction
@@ -968,6 +969,9 @@ Donations would be more than welcome :)
968969

969970
[![Donate](https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=BEK5JQCQMED4J&lc=GB&item_name=fullPage%2ejs&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
970971

972+
## Sponsors
973+
[![Stackpath](http://wallpapers-for-ipad.com/fullpage/imgs3/logos/stackpath2.png)](https://www.stackpath.com/)
974+
[![Browserstack](http://wallpapers-for-ipad.com/fullpage/imgs3/logos/browserstack2.png)](http://www.browserstack.com/)
971975

972976
## License
973977

dist/jquery.fullpage.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* fullPage 2.9.6
2+
* fullPage 2.9.7
33
* https://github.com/alvarotrigo/fullPage.js
44
* MIT licensed
55
*

dist/jquery.fullpage.extensions.min.js

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

dist/jquery.fullpage.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* fullPage 2.9.6
2+
* fullPage 2.9.7
33
* https://github.com/alvarotrigo/fullPage.js
44
* @license MIT licensed
55
*
@@ -507,7 +507,7 @@
507507

508508
if($(this).length){
509509
//public functions
510-
FP.version = '2.9.5';
510+
FP.version = '2.9.6';
511511
FP.setAutoScrolling = setAutoScrolling;
512512
FP.setRecordHistory = setRecordHistory;
513513
FP.setScrollingSpeed = setScrollingSpeed;
@@ -1393,7 +1393,14 @@
13931393

13941394
//callback (onLeave) if the site is not just resizing and readjusting the slides
13951395
if($.isFunction(options.onLeave) && !v.localIsResizing){
1396-
if(options.onLeave.call(v.activeSection, v.leavingSection, (v.sectionIndex + 1), v.yMovement) === false){
1396+
var direction = v.yMovement;
1397+
1398+
//required for continousVertical
1399+
if(typeof isMovementUp !== 'undefined'){
1400+
direction = isMovementUp ? 'up' : 'down';
1401+
}
1402+
1403+
if(options.onLeave.call(v.activeSection, v.leavingSection, (v.sectionIndex + 1), direction) === false){
13971404
return;
13981405
}
13991406
}
@@ -1731,7 +1738,7 @@
17311738
var isFirstSlideMove = (typeof lastScrolledDestiny === 'undefined');
17321739
var isFirstScrollMove = (typeof lastScrolledDestiny === 'undefined' && typeof slideAnchor === 'undefined' && !slideMoving);
17331740

1734-
if(sectionAnchor.length){
1741+
if(sectionAnchor && sectionAnchor.length){
17351742
/*in order to call scrollpage() only once for each destination at a time
17361743
It is called twice for each scroll otherwise, as in case of using anchorlinks `hashChange`
17371744
event is fired on every scroll too.*/
@@ -1946,7 +1953,7 @@
19461953
var activeSection = $(SECTION_ACTIVE_SEL);
19471954
var activeSlide = activeSection.find(SLIDE_ACTIVE_SEL);
19481955
var focusableWrapper = activeSlide.length ? activeSlide : activeSection;
1949-
var focusableElements = focusableWrapper.find(focusableElementsString);
1956+
var focusableElements = focusableWrapper.find(focusableElementsString).not('[tabindex="-1"]');
19501957

19511958
function preventAndFocusFirst(e){
19521959
e.preventDefault();
@@ -2254,7 +2261,8 @@
22542261
function addTableClass(element){
22552262
//In case we are styling for the 2nd time as in with reponsiveSlides
22562263
if(!element.hasClass(TABLE)){
2257-
element.addClass(TABLE).wrapInner('<div class="' + TABLE_CELL + '" style="height:' + getTableHeight(element) + 'px;" />');
2264+
var wrapper = $('<div class="' + TABLE_CELL + '" />').height(getTableHeight(element));
2265+
element.addClass(TABLE).wrapInner(wrapper);
22582266
}
22592267
}
22602268

@@ -2724,6 +2732,8 @@
27242732
.off('resize', resizeHandler);
27252733

27262734
$document
2735+
.off('keydown', keydownHandler)
2736+
.off('keyup', keyUpHandler)
27272737
.off('click touchstart', SECTION_NAV_SEL + ' a')
27282738
.off('mouseenter', SECTION_NAV_SEL + ' li')
27292739
.off('mouseleave', SECTION_NAV_SEL + ' li')

dist/jquery.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.

0 commit comments

Comments
 (0)