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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:17:44+00:00 2026-06-03T20:17:44+00:00

MobileSafari as a rule has incorrect HTML button behavior (incorrect meaning: not like an

  • 0

MobileSafari as a rule has incorrect HTML button behavior (incorrect meaning: “not like an iOS native button”). Correct button behavior is as follows:

  • User touches button: Button highlights
  • User drags finger out of button: Button dims
  • User drags finger back into button: Button highlights
  • User drags finger out of button and releases: Button does not click

MobileSafari buttons highlight when you touch them, stay highlighted no matter where you move, and click no matter where you release them (unless the view scrolls, in which case the touch is always canceled, even if you re-enter the button).

This problem applies to all clickable things such as links (when -webkit-touch-callout is set to none). I have only found one web application so far that has correct button behavior: Facebook. Looking at their code for it, it looks like they’ve done quite a lot of jumping-through-hoops to make it work correctly (tracking all the mouse events manually and not using buttons at all). The code is dense, uses Javelin, and I’m not yet clear on all the pieces required to make it work.

I know I’m somewhat kidding myself (since if it were easy, everyone would do it), but I’m going to ask anyway. Is there any generally-available piece of code that handles this feature? Is there a simpler solution than reverse engineering Javelin, even if it is only applicable to WebKit? (Javelin isn’t very-well suited to my lightweight needs.) My ultimate goal is correct button behavior for a UIWebView embedded in a native app, so hybrid JavaScript/ObjC solutions are acceptable as well (though no hybrid approaches come to mind).

  • 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-03T20:17:46+00:00Added an answer on June 3, 2026 at 8:17 pm

    Basically what you’d want to do is build out some sort of hybrid hover functionality for touch devices, which detects when your finger moves in/out of the button in question.

    I built a basic JSFiddle which implements some barebones functionality. If you know any javascript, I think you’ll get the idea.

    Live JSFiddle DEMO

    Try it on your iOS device (and maybe your Android device??).

    –
    brian

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

Sidebar

Related Questions

I'm curious if anyone has found a solution to disabling the default spring-loaded iOS
Any way to install a bookmarlet in Mobile Safari from a native app? Has
I'm not talking about a UIWebView , I want to open the mobile safari
I'm getting a weird error message inside mobile safari on iOS: TypeError: '[object Object]'
If you open a web page that is not mobile-specific at all, say, http://dogpile.com
I would like to duplicate the view switching functionality found in mobile safari's tab
I'm trying to trap the arguments of the function in bookmarking on MobileSafari. But
I'd like to add a header view to an UIWebView similar to the address/search
Does the iPhone has AJAX and jQuery support? I am developing a chatbox for
So I'd like to redirect mobile users to a different page. But instead of

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.