Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8453711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:49:53+00:00 2026-06-10T11:49:53+00:00

When you scroll the page, and start that scroll by pressing on a listview

  • 0

When you scroll the page, and start that scroll by pressing on a listview button, the button remains highlighted for the scroll and stays highlighted after the scroll has finished. How can I deselect this when the scroll starts?

It works if I do this:

$(document).bind('scrollstart', function(ev) {
    $('*').blur();
});

But this is inefficient and causes the page to lag before scrolling starts, I’ve tried bluring just a, li, ui-btn and ui-li, but this doesn’t unhighlight it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:49:55+00:00Added an answer on June 10, 2026 at 11:49 am

    When you click on a list-item on a jQuery Mobile pseudo-page, you’re basically adding the ui-btn-down-* class to the list-item (the * denotes one of the theme letters).

    You can remove this class once the user starts scrolling, here is an example:

    $(document).on("scrollstart", function () {
        setTimeout(function () {
            $.mobile.activePage.find('.ui-li').removeClass('ui-btn-down-a ui-btn-down-b ui-btn-down-c ui-btn-down-d ui-btn-down-e');
        }, 100);
    });​
    

    UPDATE

    Testing on my Droid X I found that a timeout helped take-away the highlighted state more consistently. You can mess with the duration of the timeout for your own purpose.

    Here is a demo: http://jsfiddle.net/WrqbG/7/

    UPDATE

    I also realized that the .ui-btn-hover-* class is applied, so to return to an un-highlighted list you’ve got to remove those classes as well.

    .removeClass('ui-btn-down-a ui-btn-down-b ui-btn-down-c ui-btn-down-d ui-btn-down-e')
    

    Just changes to:

    .removeClass('ui-btn-down-a ui-btn-down-b ui-btn-down-c ui-btn-down-d ui-btn-down-e ui-btn-hover-a  ui-btn-hover-b  ui-btn-hover-c  ui-btn-hover-d  ui-btn-hover-e')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div (sub area of page with scroll bar) that has some
How can I put a diagonal scroll in my page via JQuery ? Example,
This has gotten me extremely confused. I have one scroll views on a page
Hey there, I have dynamic question marks on my landing page that scroll with
I'm working on a site that has a splash page and I want it
I decide to make my own neverending scroll page which suits exactly my needs
I am looking to scroll the page to a particular location.Something like this: function
I was trying to use jQuery's page scroll inside some pages and could successfully
I'm almost done with my project :) i want to scroll the page to
How do I keep the background image fixed during a page scroll? I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.