Yan Yi
Posts: 0
Joined: Sat Jan 25, 2014 7:38 pm

button down/hover event on list scroll

When a list item is tapped, the button down or hover event is activated - changing the list background to grey color.

But this effect is ugly when the user does not intend to select the list item, but she intends to scroll the page. (see picture. Color of Business hours changes when scrolling )

How can I get rid of the color change when the user is scrolling?

I have tried to invoke javascript on page Scroll event to remove hover classes, for example
code

.ui-page-theme-e .ui-btn:hover, html .ui-bar-e .ui-btn:hover, html .ui-body-e .ui-btn:hover, html body .ui-group-theme-e .ui-btn:hover, html head + body .ui-btn.ui-btn-e:hover

/code
Unfortunately, iOS devices freeze DOM manipulation during scroll, queuing them to apply when the scroll finishes. My javascript is only carried out AFTER the scrolling is finished, which has no use. How else can I solve this problem?

Thanks!

Image

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

button down/hover event on list scroll

The problem you have described is not Appery.io related problem.

Try to read and find solution here:

jquery/jquery-mobile: #6248

jquery/jquery-mobile: #4048

May be "buttonMarkup.hoverDelay" propery can help you with this issue:

http://demos.jquerymobile.com/1.1.0/d...

Return to “Issues”