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

tapping on list item while in inertia scroll gives random results #464

Open
egolts opened this issue Dec 11, 2012 · 7 comments
Open

tapping on list item while in inertia scroll gives random results #464

egolts opened this issue Dec 11, 2012 · 7 comments
Labels

Comments

@egolts
Copy link

egolts commented Dec 11, 2012

using 1.0-b4-rc, on mobile safari. start a scroll on a long list with a gesture, let it scroll via inertia, and then tap a list item while it is still scrolling. The expected behavior would be that the scrolling would stop, and then the user would have to tap on the item again to highlight it. Actual behavior is a seemingly random item is selected instead. This is especially problematic if the list items link to other pages, thus giving the user a page they did not intend to see.

If one waits until the scroll stops, then highlighting/linking to new page works as expected.

EDIT:

Just discovered I was using useFastTouch: true. Setting it to false fixes the incorrect linking, but incorrect list items are still highlighted. I've removed background color changes for .active list items as a stop-gap.

@thomasyip
Copy link
Member

Is the device an Android? It might be a Zepto's touch.js bug, because we now depends on them on touch stuffs.

If applicable, removing the active class might be a better workaround.
$('.active').removeClass('active')

@egolts
Copy link
Author

egolts commented Dec 18, 2012

It’s in ios, using the jquery version. (both ios 5.1 and 6 exhibit the behavior). I’ll give the workaround a try.

@thomasyip
Copy link
Member

We reused Zept's touch.js for jQuery. If you use jQuery, you might want to try jquery-jqtouch2.js, which might be better in some situations.

@egolts
Copy link
Author

egolts commented Dec 18, 2012

tried the jquery-jqtouch2.js - the app just became a blank black screen. So used it along with the latest source and although the app appeared, much of its' functionality became buggy - double animations, scrolling freezes etc. To use the latest version of the app, all I have to do is grab the versions from master branch in /src right? Just making sure before I give up and stick to the release candidate version instead.

@thomasyip
Copy link
Member

All css and js must be updated as well.

There are animation fixes that affected both files.

@egolts
Copy link
Author

egolts commented Dec 19, 2012

updated all files - the new version seems to fix the issue when useFastTouch = false. The problem remains when fastTouch is enabled however, but I understand this is an experimental feature. Thanks for the help & info.

@egolts egolts closed this as completed Dec 19, 2012
@thomasyip
Copy link
Member

@egolts, thanks for the update. I think it is a real bug in zepto's touch.js.

I am reopening this to remind myself to file a bug on zepto.

@thomasyip thomasyip reopened this Dec 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants