Skip to content

Commit a2742f5

Browse files
committed
- Apply scrollOverflow on specific sections alvarotrigo#1869
1 parent 23153ae commit a2742f5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

jquery.fullPage.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* fullPage 2.7.10 (Beta)
2+
* fullPage 2.10.0 (Beta)
33
* https://github.com/alvarotrigo/fullPage.js
44
* @license MIT licensed
55
*
@@ -2024,8 +2024,16 @@
20242024
return 'right';
20252025
}
20262026

2027-
2027+
/**
2028+
* Checks if the element needs scrollbar and if the user wants to apply it.
2029+
* If so it creates it.
2030+
*
2031+
* @param {Object} element jQuery object of the section or slide
2032+
*/
20282033
function createSlimScrolling(element){
2034+
//User doesn't want scrollbar here? Sayonara baby!
2035+
if(element.hasClass('fp-noscroll')) return;
2036+
20292037
//needed to make `scrollHeight` work under Opera 12
20302038
element.css('overflow', 'hidden');
20312039

0 commit comments

Comments
 (0)