My favorites | Sign in
Project Home Downloads Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 22: Animation issue when "bounce" set to false and few elements being scrolled
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  mat...@gmail.com
Closed:  Aug 2010


 
Reported by cary.cal...@gmail.com, Aug 19, 2010
What steps will reproduce the problem?
1. View the "simple" example, but swap in the attached index.html for the default index.html.
2. Attempt to scroll the rows up, to the top of the scrollable area.

Or, to reproduce yourself,
1. Open the index.html for the "simple" example (examples/simple/index.html)
2. Change it so that the "bounce" option is set to false (when the new iScroll object is created, pass {bounce: false} as the option parameter)
3. In the ul with id "theList", delete or comment out all of the li elements after row 4, so that there are only four rows.
4. Attempt to scroll the rows up, to the top of the scrollable area.

What is the expected output? What do you see instead?
The rows should stop when they hit the top of the scrollable area (so they shouldn't move at all).  Instead, they flicker and bounce around to the top and bottom of the scrollable area.

What version of the product are you using? On what operating system?
Version 3.6beta1.  Have seen this in the iPhone simulator running version 4.0, and on a Nexus One running Android 2.2.

Please provide any additional information below.
Maybe this is related to the content in the scroller div not being large enough to fill the height of the wrapper div?  Also, thank you for this great project!
index.html
5.6 KB   View   Download
Aug 19, 2010
Project Member #1 mat...@gmail.com
Theoretically iscroll shouldn't break if content in the scroller is not large enough. I'll review this tomorrow.
Status: Accepted
Owner: matt3o
Aug 24, 2010
Project Member #2 mat...@gmail.com
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting