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

  • Home
  • SEARCH
  • 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 8032979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:33:11+00:00 2026-06-05T01:33:11+00:00

I am using jquery mobile and I have an annoying issue… When an element

  • 0

I am using jquery mobile and I have an annoying issue… When an element has a link, for example a button, I am catching events like touchEnd event to fire then javascript calls or prevent link. However, when a long press button (1 or 2 seconds), ALWAYS executes the link! Tested on iOS5 and Android and tried several possibilities but problem remains! For example, following code should prevent link and it does if you click “fast” at button. However, if you press button and hold it (touchend is not fired), link is also executed! Also if you do not handle any event. Thank you

$(document).ready(function() 
 {
  $("a").bind('touchend', function(event)
  {      
          event.stopImmediatePropagation();
          event.preventDefault();
  }

EDIT: problem comes from tabhold event that always fire link although this event is used or not! Definetely seems a bug and possible solution could be set its time to infinite. How?

  • 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-05T01:33:13+00:00Added an answer on June 5, 2026 at 1:33 am

    Please report a bug on the jquery-mobile site https://github.com/jquery/jquery-mobile/issues

    Ideally make an example app that shows the bug from this template: http://jsbin.com/otepum/edit#html

    I recently reported a similar bug, which is that cmd+click on a link doesn’t open in new window (obviously not a problem on actual touch screens)

    Thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a web page using JQuery Mobile that has a link at
I am developing an events page using jquery mobile. I have a stylish way
I'm using Jquery mobile framework. I have 2 html files which has two buttons
I'm using jquery-mobile with Ruby On Rails. I want to create a button link
Is it possible to have a textbox and a button horizontally using JQuery Mobile?
I have an issue with the footer of a mobile site built using jQuery
I'm using jquery mobile and have a form with a submit button. Unfortunately, after
I am using jquery mobile... I have a button (data-role=button) which calls a javascript
I'm using Jquery Mobile and have the same form on every page. As Jquery
I'm building a web app using jquery mobile that will have lots of images

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.