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 9181063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:11:53+00:00 2026-06-17T18:11:53+00:00

This is a known issue for iScroll and it only seems to happen in

  • 0

This is a known issue for iScroll and it only seems to happen in iOS5 where the menu completely stops working. All my sub links in iScroll are hash anchors. Does anyone have a workaround for this?

  • 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-17T18:11:54+00:00Added an answer on June 17, 2026 at 6:11 pm

    The way I handled it was to hijack the anchor links themselves and replace them with scrollToElement calls instead.

    // Hijack hash anchors and scroll to them
    $('a').click ( function (e) {
        var id = $(this).attr('href');
        if (id.substr(0,1) == '#') {
            e.preventDefault();
            setTimeout( function() {
                scroller.scrollToElement ( id, 0 );
            }, 0);
            return false;
        } else {
            return true;
        }
    });
    

    This code should only hijack links that begin with #. It then handles the scrollToElement in a setTimeout which fixes some other intermittent bugs. It works well on my end as long as your anchors are properly named with id’s. If you are using name attributes instead of id attributes, you’ll need to rewrite these.

    This code will copy name attributes and put them in the id attribute if it is blank. You probably won’t need this, though.

    $('a').each (function (i, e) {
        var n = $(e).attr('name');
        var id = $(e).attr('id');
        if ( typeof id == 'undefined' || id === null || id === '') {
            $(e).attr('id', n);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is this a known issue? I had trouble finding any search results. When iterating
this is a known issue with ItemsControl although I couldn't find a solution :(
Not sure this is a known issue. I’m using VS2012 RC (Ultimate), and Win8
Is this a known issue? I have the following XAML: <Grid x:Name=LayoutRoot> <Popup> <Slider
I am trying to identify this bug. Is this a known issue already or
Is this some known issue or what. My code is like this: <table> <tr>
Am I doing something wrong is this a known issue with the ASP.NET MVC
For some reason, my line numbers won't show. Is this a known issue? Code
I know this issue was posted before, and i fixed my code according to
I know this issue has been touched on here but I have not found

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.