jquery/jquery-mobile — Issue #3731: Problems with tap() + silentScroll()
Author: derghostface
Created: 2012-03-04 19:19:55+00:00
State: open

This bug occurs on following system:
- Samsung Galaxy S2, android 2.3.6, stock browser
- jquerymobile 1.1 RC1

A long page. On the upper half there are a lot of links to other pages. On the lower half there are links, which should take you to the top again (with tap() and $.mobile.silentScroll(0)).
If you click on a link to scroll to the top, you get to the top, BUT the link on the upper half of the page, which is now in the position where the link "scroll to" was before scrolling, also is invoked.

You can test this here: http://jsbin.com/ibukaf/
1. Open http://jsbin.com/ibukaf/ with android stock browser (I tested it with 2.3.6)
2. Scroll down the page, you should now see only one "go to page 2" listpoint and a lot of "scroll to" links
3. click one of the "scroll to" links
4. you should be scrolled to the top of the page and then the link, which is now in the position where the link "scroll to" was before scrolling, is invoked too. So you get to page 2.

This only happens if you tap the link for a short time. When you tap the link longer, the upper link will be not invoked.
If you take click() instead of tap() everything works fine, but the problem is, that on mobile browsers you have a long delay with click() functions.