Skip to content

Commit b3e3e3e

Browse files
committed
- Documentation: added new option scrollOverflowReset
1 parent 1babac5 commit b3e3e3e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<a href="http://alvarotrigo.com/fullPage/utils/wordpress-y-theme.html"><img src="http://alvarotrigo.com/fullPage/imgs/wodpress-y-theme-fullpage1.png" /></a>
1212
</p>
1313

14-
![fullPage.js version](http://img.shields.io/badge/fullPage.js-v2.9.0-brightgreen.svg)
14+
![fullPage.js version](http://img.shields.io/badge/fullPage.js-v2.9.1-brightgreen.svg)
1515
[![License](http://img.shields.io/badge/License-MIT-blue.svg)](http://opensource.org/licenses/MIT)
1616
7Kb gziped!
1717

@@ -182,6 +182,7 @@ $(document).ready(function() {
182182
fadingEffect: false,
183183
normalScrollElements: '#element1, .element2',
184184
scrollOverflow: false,
185+
scrollOverflowReset: false,
185186
scrollOverflowOptions: null,
186187
touchSensitivity: 15,
187188
normalScrollElementTouchThreshold: 5,
@@ -461,6 +462,8 @@ For example:
461462

462463
In order to prevent fullpage.js from creating the scrollbar in certain sections or slides use the class `fp-noscroll`. For example: `<div class="section fp-noscroll">`
463464

465+
- `scrollOverflowReset`: (default `false`) [Extension of fullpage.js](http://alvarotrigo.com/fullPage/extensions/). When set to `true` it scrolls up the content of the section/slide with scroll bar when leaving to another vertical section. This way the section/slide will always show the start of its content even when scrolling from a section under it.
466+
464467
- `scrollOverflowOptions`: when using scrollOverflow:true fullpage.js will make use of a forked and modified version of [iScroll.js libary](https://github.com/cubiq/iscroll/). You can customize the scrolling behaviour by providing fullpage.js with the iScroll.js options you want to use. Check [its documentation](http://iscrolljs.com/) for more info.
465468

466469
- `sectionSelector`: (default `.section`) Defines the jQuery selector used for the plugin sections. It might need to be changed sometimes to avoid problem with other plugins using the same selectors as fullpage.js.

README_SPANISH.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<a href="http://alvarotrigo.com/fullPage/utils/wordpress-y-theme.html"><img src="http://alvarotrigo.com/fullPage/imgs/wodpress-y-theme-fullpage1.png" /></a>
1212
</p>
1313

14-
![fullPage.js version](http://img.shields.io/badge/fullPage.js-v2.9.0-brightgreen.svg)
14+
![fullPage.js version](http://img.shields.io/badge/fullPage.js-v2.9.1-brightgreen.svg)
1515
[![License](http://img.shields.io/badge/License-MIT-blue.svg)](http://opensource.org/licenses/MIT)
1616
7Kb en gzip!
1717

@@ -181,6 +181,7 @@ $(document).ready(function() {
181181
fadingEffect: false,
182182
normalScrollElements: '#element1, .element2',
183183
scrollOverflow: false,
184+
scrollOverflowReset: false,
184185
scrollOverflowOptions: null,
185186
touchSensitivity: 15,
186187
normalScrollElementTouchThreshold: 5,
@@ -453,6 +454,8 @@ Cuando se usa `true` esta opción requiere del uso de la librería externa [`scr
453454

454455
Para evitar que fullPage.js crea la barra de desplazamiento en ciertas secciones o diapositivas, haz uso de la clase ` fp-noscroll`. Por ejemplo: `<div class="section fp-noscroll">`
455456

457+
- `scrollOverflowReset`: (default `false`) [Extensión de fullpage.js](http://alvarotrigo.com/fullPage/extensions/). Cuando se define a `true` fullPage.js moverá el contenido de la seccion o diapositiva hacia arriba cuando se abandone la seccion o diapositiva hacia otra sección vertical. De este modo, cuando se llega a una sección que usa barra de desplazamiento, se mostrará siempre el principio de su contenido.
458+
456459
- `scrollOverflowOptions`: cuando se usa la opcion de scrollOverflow:true fullPage.js hará uso de una versión modificada de la [libería iScroll.js](https://github.com/cubiq/iscroll/). Puedes personalizar el comportamiento de dicho componente aportando a fullPage.js las opciones de iScroll que quieras usar haciendo uso de esta opción. Mira [la documentacion de iScroll](http://iscrolljs.com/) para más información.
457460

458461
- `sectionSelector`: (default `.section`) Determina el selector de jQuery que fullPage.js usará para determinar lo que es una sección. Puede que necesites cambiarlo para evitar problemas con otras librerías que usen el mismo selector que usa fullPage.js por defecto.

0 commit comments

Comments
 (0)