Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Infinite scroll: snap to closest LI #1102

Open
bartb opened this issue Nov 21, 2016 · 1 comment
Open

Infinite scroll: snap to closest LI #1102

bartb opened this issue Nov 21, 2016 · 1 comment

Comments

@bartb
Copy link

bartb commented Nov 21, 2016

I want to use iscroll-infinite to swipe through images and – after it stops scrolling – make it 'snap' to its closest image (or LI)... so everything is nicely aligned at the top. Using the option 'snap' gives me an error...

TypeError: undefined is not an object (evaluating 'this.pages[x].length')

I'm guessing that 'snap' option is not compatible with scroll-infinite, because of the caching or something?

Perhaps there is an other way?

@weizs
Copy link

weizs commented Jan 19, 2017

I also have this problem, the solution #1095

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants