alvarotrigo / alvarotrigo/fullPage.js

An issue while changing scrollingSpeed

Offen
#1,399 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
35.4k
Forks
7.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I have found, issue, when i change scrollingSpeed onRendered to the scrollingSpeed = 0
and after all my resources are loaded, i change scrollingSpeed to the normal 700.
And what exactly i expecting and what i have:
when i change scrollingSpeed to 0 i expecting that fullpage primary container "#fullpage"

```
$('#fullpage').fullpage({....})
```

will have style like

```
style=".....;transition: all 0ms ease"
```

and it is works as expected. But when i change scrollingSpeed back to the 700
i expect that style will looks like:

```
style=".....;transition: all 700ms ease"
```

but it doesn't until i will do some scroll or another action when fullpage will recalculate or whatever.
It is a bit unexpected, because if i have any elements on page which should move fullpage container animatedly, it will cause an ugly jump for fullpage container.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.