jquery/jquery-mobile — Issue #3350: ui-btn-down class incorrectly displayed when scrolling instead of tapping
Author: offsky
Created: 2011-12-28 23:03:23+00:00
State: open

When you tap and drag your finger to scroll a listview, the row that you initially tapped on is being styled with ui-btn-down. I understand that the initial tap should implement ui-btn-down because releasing your finger will trigger the button. However, once you start to drag your finger, the OS switches to scrolling mode and releasing your finger will no longer trigger the button.

I suggest that JQM monitor the scroll event, and if we start scrolling, we need to remove the ui-btn-down class from the button that we had just tapped on, since it is no longer down as far as the browser is concerned.