iOS 11.4 Safari not respecting 'touch-action: manipulation'

touch-action not working on ios
also define the standard property touch action for compatibility
touchaction
caniuse touch action
prevent double tap zoom
enable touch scroll css
touch effect css
touch pan

I encountered a problem with a React web app I'm trying to build cross-platform. Basically, I just wanted to be able to interact with a div via a double-click on desktop, and a double-tap on mobile.

However, on iOS (I'm specifically targeting the latest 11.4 version of Safari), the double-tap always results in a 'double tap to zoom' behavior.

From my research, I discovered that using touch-action: manipulation in my css should solve the problem, and is even supposed to be supported by Safari on iOS (https://caniuse.com/#feat=css-touch-action).

However, I made a super-simple react project, and no matter what, double-tapping on the blue div always zooms.

I'm hoping I'm just missing something, so if anyone could enlighten me, it would be appreciated!

Here's my super simple react project hosted in GitHub: https://github.com/erlloyd/touch-action-bug, and here's the relevant code:

App Component

import React, { Component } from 'react';
import './App.css';

class App extends Component {
  render() {
    return (
      <div className="App">
      </div>
    );
  }
}

export default App;

The last couple of comments on the original WebKit feature request might be useful to you.

...what's happening in that example is that since the touch-action: manipulation div is not clickable, we skip that node when trying to find a clickable element for the touch. To verify this, add an onclick to the div with touch-action manipulation and touches on it should turn fast.

This page shows that the property does seem to apply when the object is clickable, and in testing I can see that the double-tap to zoom behaviour doesn't occur on the "manipulation" box.

Adding an onClick to your div should do the trick, for example:

class App extends Component {
  render() {
    return (
      <div className="App" onClick={e => e.preventDefault()}>
      </div>
    );
  }
}

iOS 11.4 Safari not respecting 'touch-action: manipulation', iOS 11.4 Safari not respecting 'touch-action: manipulation'. touch-action none safari disable viewport zooming ios 10 safari caniuse touch-action This document describes the security content of iOS 11.4.1. About Apple security updates For our customers' protection, Apple doesn't disclose, discuss, or confirm security issues until an investigation has occurred and patches or releases are available.

According to MDN, Safari and Mobile Safari don't support touch-action:manipulation

Since updating to iOS 11.4, Safari no longer displays certain , Since updating to iOS 11.4, Safari no longer displays certain websites. New comments cannot be posted and votes cannot be cast designer and I decided to create a mockup of the new iOS weather app, following the Dark Sky acquisition. Fixed out iOS 13 Apps keeps crashing: Notes, Safari, Files, Message, ect.. The complete guide to Fix App crashing after iOS 13 Update. 1: Check for Update. Check and get new iOS update on your iPhone and iPad. Apple New iOS seeds come out with all bug fixes and improvements.

iOS Safari supports touch-action: manipulation and touch-action: auto, but I found a bug, that it doesn't work for inputs - they're zooming page on double tap https://caniuse.com/#search=touch-action

iOS Safari Caching problems: How to get iOS Safari to behave a bit , I hope the following can be helpful to those of you that have had or are having issues with iOS Safari not letting go of some cached files (Since approximately iOS that I worked-with were “compatible with iOS 11.3 or 11.4”. Over the years, we've seen security breach after security breach, as well as high-profile data scandals where collected personal information was misused by companies. Apple makes customer privacy a priority, so there have been few issues to worry about when it comes to its services on your iPhone. However, there are still plenty of privacy settings to explore and change, especially within Safari.

Supervised restrictions, (MDM) solution. The following restrictions are available only for supervised iOS and iPadOS devices. The Safari web browser app is disabled and its icon is removed from the Home screen. See Activating data connections securely in Apple Platform Security. 11.4.1. Require Pair with non-Apple Configurator 2 hosts. Some of this information is available on this wikipedia page but is a bit scattered and doesn’t include any information on the Mobile Safari version in each release. Corrections, suggestions, additions, etc., are welcome in the comments or @somegeekintn .

IOS Accessibility Issues, This still occurs in iOS 11.4. Bug 161118 – AX: VoiceOver on iOS ignores aria-​checked on menuitemradio and elements that contain <optgroup> groupings are not read properly on iPhone iOS 11.2.6 on Safari Browser. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Learn more iOS 11.4 Safari not respecting 'touch-action: manipulation'

Touch action none ios safari, If you are also struggling with Safari not working on iPhone or Safari not working on iPad issues iOS 11.4 Safari not respecting 'touch-action: manipulation'. Apple has released iOS 11.4, which is considered a major update with a couple of new features and bug fixes. Here is a breakdown of the iOS 11.4 features.

Comments
  • I spent a day to identify the problem and your answer is working perfect. Thanks
  • Note that you do not necessarily need to preventDefault. You can also add an empty listener function.
  • I'm on an iPhone right this moment visiting that touch-action.html page, and the "manipulation" box is still zooming in on double tap...
  • Perhaps I am misreading the page you have linked to, but it appears to state that touch-action: manipulation is supported from IOS 9.4 and onwards.
  • @Mark ans is correct and it is working fine in mobile safari