Skip to content
This repository was archived by the owner on Apr 15, 2020. It is now read-only.

Scroll window when before-snap returns false #42

@ziaulrehman40

Description

@ziaulrehman40

Hi there,

I am using rails and angular, in there i have used snapscroll for some functionality, there are actually two issues, but both are linked in a way that it seems like single issue.

First issue is that when there are no more elements to scroll, snapscroll is supposed to scroll window than, as demos also have this same functionality, but instead for me snap-scroll just sticks in there and doesn't let window to scroll either.

Second issue is that when before-snap returns false, it should mean that we don't want to snap next item, but instead scroll should let window to scroll because snap-scroll has not used this scroll. So, it should be passed to window to let window scroll.

i am using something like:

%div(snapscroll="true" before-snap="b4snap(snapIndex)" prevent-double-snap-delay="200" snap-index="snapIndex" snap-animation="false")

Is there anything i can do about this? this issue has wasted about a weak, and i hope there is something i can do about it without changing the library or anything. Even if i need to edit the source i will be happy to make a pull-request, just guide me to the exact problem here...

EDIT: There seems to be much js on demo site that might be playing role, specially swipe up and swipe down functions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions