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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:06:23+00:00 2026-06-14T14:06:23+00:00

How do you remove the click/tap delay from mobile Safari on iOS? I have

  • 0

How do you remove the click/tap delay from mobile Safari on iOS?

I have fiddled around with event listeners quite a bit, and have used a bunch of different scripts (such as Lightning Touch) to no joy. There are a few solutions which would have worked, however these types of scripts force you to code a destination element to every link on the DOM. This unfortunately could cause some fast and some slow transitions, which won’t work for me.

  • 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-14T14:06:24+00:00Added an answer on June 14, 2026 at 2:06 pm

    I finally found the answer to my speed woes after tireless searching, and it comes in the form of FastClick (this thread goes into great detail, along with some tweaks in the comments from other users).

    Incorporate the FastClick.js script, add the onLoad listener, and wrap your <body> content in a span, and your app should start feeling much more native.

    onLoad Listener: <body onLoad="initFastButtons();">

    Span Wrap:

    <body onLoad="initFastButtons();">
        <span id="fastclick">
    
        [...]
    
        </span>
    </body>
    

    FastClick.js

    //======================================================== FASTCLICK
             function FastButton(element, handler) {
                this.element = element;
                this.handler = handler;
                element.addEventListener('touchstart', this, false);
             };
             FastButton.prototype.handleEvent = function(event) {
                switch (event.type) {
                   case 'touchstart': this.onTouchStart(event); break;
                   case 'touchmove': this.onTouchMove(event); break;
                   case 'touchend': this.onClick(event); break;
                   case 'click': this.onClick(event); break;
                }
             };
             FastButton.prototype.onTouchStart = function(event) {
    
    event.stopPropagation();
                this.element.addEventListener('touchend', this, false);
                document.body.addEventListener('touchmove', this, false);
                this.startX = event.touches[0].clientX;
                this.startY = event.touches[0].clientY;
     isMoving = false;
             };
             FastButton.prototype.onTouchMove = function(event) {
                if(Math.abs(event.touches[0].clientX - this.startX) > 10 || Math.abs(event.touches[0].clientY - this.startY) > 10) {
                   this.reset();
                }
             };
             FastButton.prototype.onClick = function(event) {
                this.reset();
                this.handler(event);
                if(event.type == 'touchend') {
                   preventGhostClick(this.startX, this.startY);
                }
             };
             FastButton.prototype.reset = function() {
                this.element.removeEventListener('touchend', this, false);
                document.body.removeEventListener('touchmove', this, false);
             };
             function preventGhostClick(x, y) {
                coordinates.push(x, y);
                window.setTimeout(gpop, 2500);
             };
             function gpop() {
                coordinates.splice(0, 2);
             };
             function gonClick(event) {
                for(var i = 0; i < coordinates.length; i += 2) {
                   var x = coordinates[i];
                   var y = coordinates[i + 1];
                   if(Math.abs(event.clientX - x) < 25 && Math.abs(event.clientY - y) < 25) {
                      event.stopPropagation();
                      event.preventDefault();
                   }
                }
             };
             document.addEventListener('click', gonClick, true);
             var coordinates = [];
             function initFastButtons() {
     new FastButton(document.getElementById("fastclick"), goSomewhere);
             };
             function goSomewhere() {
     var theTarget = document.elementFromPoint(this.startX, this.startY);
     if(theTarget.nodeType == 3) theTarget = theTarget.parentNode;
    
     var theEvent = document.createEvent('MouseEvents');
     theEvent.initEvent('click', true, true);
     theTarget.dispatchEvent(theEvent);
             };
    //========================================================
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how to remove my control from the actionsheet without click on actionsheet's buttons in
I have the following function to remove a DOM element div, $('#emDiv').on(click, ':button[data-emp-del=true]', function
I have remove which is given as a link. If I click remove I
Is it possible to remove than add back click event to specific element? i.e
i can use this code to remove click event, $('p').unbind('click') but , has some
$(b).bind(contextmenu,function(e){ thiselementselected = e.target $(#add).bind(click,function(e){ thiselementselected.css(font-color, red); return false }); $(#remove).bind(click,function(e){ thiselementselected.css(font-color, ); return
How can I remove the small expand effect when I click on a JavaFX
I get stuck at remove border of radio button when i click on it
<script type=text/javascript> $(document).ready(function($) { $(a.delete).click{function(){ $(this).parent().remove(); } }); </script> <li> <a href=index.html> <h3>1</h3> </a>
I have a DIV which I want to be removed when I click a

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.