-
Notifications
You must be signed in to change notification settings - Fork 17
Scroll window when before-snap returns false #42
Description
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