Hello. I’ve seen others mention this issue from several years ago, but I couldn’t find an actual resolution.
I’m having an issue where my application is sometimes requiring a user to tap a button multiple times, and it is causing it to zoom in (Safari, iOS 17.5.1). I have not been able to test it on any other touch enabled device.
I’ve updated the meta tag in index.html to <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
, and it makes no difference.
I’ve set the touch-activity
of buttons (and all elements while trying to fix the problem) to manipulation
and none
with no effect. The browser completely ignores these things and zooms on double tap anyway.
The repo for the project I’m working on:
You can try the double tapping on mobile on the live app hosted on Vercel:
https://dice-roller-smoky.vercel.app/
It is most obvious when trying to tap the delete key multiple times to clear the input field, but it happens when double tapping any button rapidly.
{
"dependencies": {
"@ionic/react": "^8.1.2",
"@ionic/storage": "^4.0.0",
"@vercel/functions": "^1.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-ionicons": "^4.2.1"
},
"devDependencies": {
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"vite": "^5.2.0"
}
}
One addition: When I download this to my device as an app, the double tap to zoom behavior works correctly.