Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ScrollViewPaginator#scrollToIndex not taking anim duration/easing #274

Closed
wants to merge 3 commits into from

Conversation

juandopazo
Copy link
Member

In ScrollViewPaginator scrollToIndex takes an animation duration and easing that aren't having any effect. This is because paginator.set('index', index) triggers another call to scrollToIndex. This patch fixes that behavior by passing an "src" option to paginator.set('index', index, {src: UI}).

I added tests that check the time spent in the animation (with a margin of error)

ScrollViewPaginator#scrollToIndex takes an animation duration and easing
that aren't having any effect. This is because paginator.set('index',
index) triggers another call to scrollToIndex. This patch fixes that
behavior by passing an "src" option to paginator.set('index', index).

I added tests that check the time spent in the animation (with a margin
of error)
Shorter durations are usually very imprecise
@ghost ghost assigned derek Sep 20, 2012
@derek
Copy link
Contributor

derek commented Sep 20, 2012

Thanks. Quick inspection looks good. I merged this into a local branch and will begin using it with dev work. Will update when it is pushed into Master or 3.x.

@derek
Copy link
Contributor

derek commented Oct 1, 2012

Merged into 3.x, which means it will be included in the next release (3.8.0pr1).

@derek derek closed this Oct 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants