8000 Create a beforeLeave event · Issue #340 · alvarotrigo/fullPage.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Create a beforeLeave event #340
Closed
Closed
@NinoFloris

Description

@NinoFloris

Sometimes you want to cancel the leave or change some elements before the scroll starts.

At the moment I have to change your code to be able to cancel a specific scroll. Because you strip all the touchhandlers before adding your own, this way mine can never be the first handlers and therefore never succesfully do event.stopImmediatePropagation() without your handlers having already started the scroll animation.

The usecase for this by the way is when you have a few pages, starting on the second. Continuousvertical on. And then being able to scroll to the first but not back to the last pages, this is then only possible when going down to the last page and then you come back to the top page. So basically a kind of loopBottom without the jump effect.

(Same guy as ellos btw, yay for multiple accounts...)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0