<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/stop-buttons-triggering-zoom-when-they-re-double-tapped-xoltks6sd" -->

---
title: Stop buttons triggering zoom when they’re double tapped
description: A double-tap gesture on mobile Safari can trigger unwanted browser zooming on buttons, even with a correctly configured viewport meta tag. Rather than...
canonical: https://daily.dev/posts/stop-buttons-triggering-zoom-when-they-re-double-tapped-xoltks6sd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Stop buttons triggering zoom when they’re double tapped | daily.dev
og:description: A double-tap gesture on mobile Safari can trigger unwanted browser zooming on buttons, even with a correctly configured viewport meta tag. Rather than...
og:url: https://daily.dev/posts/stop-buttons-triggering-zoom-when-they-re-double-tapped-xoltks6sd
og:image: https://api.daily.dev/og/posts/xOLTKs6SD.png
og:image:alt: Stop buttons triggering zoom when they’re double tapped
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Stop buttons triggering zoom when they’re double tapped

**[Piccalilli](https://daily.dev/sources/piccalilli)** · 2 min read · 2 upvotes · 0 comments

## Summary

A double-tap gesture on mobile Safari can trigger unwanted browser zooming on buttons, even with a correctly configured viewport meta tag. Rather than disabling zoom entirely with maximum-scale=1.0 and user-scalable=no (which violates WCAG accessibility guidelines), the fix is a single CSS line: touch-action: manipulation on the button element. This disables non-standard gestures like double-tap-to-zoom while preserving standard panning and pinch-zoom accessibility. Live CodePen demos illustrate the behavior before and after applying the fix.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://piccalil.li/blog/stop-buttons-triggering-zoom-when-theyre-double-tapped>

## Questions this post answers

### How do I stop mobile Safari from zooming in when a button is double tapped?

Add touch-action: manipulation to the button's CSS. This disables non-standard gestures like double-tap-to-zoom while still allowing standard panning and pinch-zoom, so it does not violate WCAG accessibility rules about resizing text. It also removes the delay browsers add before firing click events after a tap.

_Developers polishing mobile touch interactions can find fixes like this through daily.dev._

### Why shouldn't I use maximum-scale=1.0 and user-scalable=no to stop zoom on mobile buttons?

Setting maximum-scale=1.0 and user-scalable=no in the viewport meta tag disables all pinch and zoom functionality on the page, not just the accidental double-tap zoom on a button. This is flagged as a WCAG violation under the resize-text guideline because it prevents users who need to zoom for readability from doing so.

_Anyone balancing mobile UX fixes with accessibility compliance can track guidance like this on daily.dev._

## Similar posts on daily.dev

- [You Don't Need Initial-Scale In Your HTML](https://daily.dev/posts/you-don-t-need-initial-scale-in-your-html-bafqvsgqd) · Lobsters · 7 upvotes · 0 comments
- [Please do not use auto-scrolling content on the web and in applications – Bogdan on Digital Accessibility \(A11y\)](https://daily.dev/posts/please-do-not-use-auto-scrolling-content-on-the-web-and-in-applications-bogdan-on-digital-accessib-tmqkmf2pz) · Bogdan on A11y · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#css](https://daily.dev/tags/css), [#accessibility](https://daily.dev/tags/accessibility), [#safari](https://daily.dev/tags/safari)

[View this post on daily.dev](https://daily.dev/posts/stop-buttons-triggering-zoom-when-they-re-double-tapped-xoltks6sd)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Stop buttons triggering zoom when they’re double tapped","url":"https://daily.dev/posts/stop-buttons-triggering-zoom-when-they-re-double-tapped-xoltks6sd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/stop-buttons-triggering-zoom-when-they-re-double-tapped-xoltks6sd"},"datePublished":"2026-09-23T12:08:23.926Z","dateModified":"2026-09-23T12:08:46.218Z","description":"A double-tap gesture on mobile Safari can trigger unwanted browser zooming on buttons, even with a correctly configured viewport meta tag. Rather than...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8154766b4042d2e571a0201af732a939?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8154766b4042d2e571a0201af732a939?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Piccalilli","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Piccalilli","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/6864a3872e444ed8a46d4e28a71883e3","url":"https://daily.dev/sources/piccalilli"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/stop-buttons-triggering-zoom-when-they-re-double-tapped-xoltks6sd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,css,accessibility,safari","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Piccalilli","item":"https://daily.dev/sources/piccalilli"},{"@type":"ListItem","position":3,"name":"Stop buttons triggering zoom when they’re double tapped"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/stop-buttons-triggering-zoom-when-they-re-double-tapped-xoltks6sd#faq","mainEntity":[{"@type":"Question","name":"How do I stop mobile Safari from zooming in when a button is double tapped?","acceptedAnswer":{"@type":"Answer","text":"Add touch-action: manipulation to the button's CSS. This disables non-standard gestures like double-tap-to-zoom while still allowing standard panning and pinch-zoom, so it does not violate WCAG accessibility rules about resizing text. It also removes the delay browsers add before firing click events after a tap. Developers polishing mobile touch interactions can find fixes like this through daily.dev."}},{"@type":"Question","name":"Why shouldn't I use maximum-scale=1.0 and user-scalable=no to stop zoom on mobile buttons?","acceptedAnswer":{"@type":"Answer","text":"Setting maximum-scale=1.0 and user-scalable=no in the viewport meta tag disables all pinch and zoom functionality on the page, not just the accidental double-tap zoom on a button. This is flagged as a WCAG violation under the resize-text guideline because it prevents users who need to zoom for readability from doing so. Anyone balancing mobile UX fixes with accessibility compliance can track guidance like this on daily.dev."}}]}
```

