Kinopy
devlog
Play today's puzzle

Safari on iPhone zoomed my game in

A fast double tap zoomed the whole board and Safari kept the zoom. Two small CSS rules fixed it, and pinch zoom still works.

When you play Kinopy on a phone, I want the board to stay at the right scale while you tap around it. So when a player on Safari for iPhone reported on 21 October 2026 that everything looked too zoomed in, I went to find out why. This is a short post about what I found, the fourteen lines I added to app.css in #157, and why I could not simply switch zooming off.

The layout

I checked the layout first, and opened the game in WebKit with an iPhone 15 and an iPhone SE, both emulated. At load, the page sat at the device width with no sideways scroll, and the board scale matched what Chromium gave me on a Pixel 7. So the page did not start zoomed in, and something was zooming it later from a gesture.

The issue (#154) set the goal: a double tap never zooms the page, no text field zooms the page on focus, and pinch zoom still works, for accessibility.

The double tap

Safari on iPhone zooms in on a fast double tap, and it keeps the zoom. Before the fix, the game set touch-action in only a few places:

WhereRule before #157
Tilesnone
The bubblenone
Calendar buttonsmanipulation
Everything elsenothing

You drag the tiles and the bubble, so they take every touch for themselves. That last row was the trouble. On a branch, on the earth or on the sky, two quick taps zoomed the board in, and Safari kept the zoom.

The rule

The fix is a rule on every element, in app.css:

* {
  touch-action: manipulation
}

Two details made this rule less obvious than it looks. A rule on the root alone is not enough, because a scroll box starts its touch rules again, so each element carries the rule itself. The universal selector also has no specificity, so the tiles and the bubble keep their own touch-action: none and still win.

Pinch zoom still works. That was the point of choosing manipulation over turning zoom off, because someone who needs to enlarge the board must still be able to. The viewport tag in index.html is the plain width=device-width, initial-scale=1.0, and it stays that way.

The text fields

While I looked into the zoom, I also caught a second way Safari zooms the page in. Safari zooms in when a text field with text smaller than 16 px gets focus, and the delete-account field used 15 px text. So text fields now use 16 px:

input:not([type='checkbox'], [type='radio']),
select,
textarea {
  font-size: 16px
}

The selector leaves checkboxes and radio buttons alone, so focusing a text field no longer zooms the page.

Checking it

On the dev build in WebKit with the iPhone 15 emulation, the page, the frame, the sky and the branches all read manipulation, the tiles kept none, and a text field read 16 px. npm test passed with 1,396 tests, and npm run check finished with 0 errors and 0 warnings. I had not tested the fix on a real iPhone yet when it merged, and #157 says so.

Looking back

The whole fix came down to two small rules in app.css, all from a single player report, and the issue and the merged fix were 22 minutes apart. Seeing the page load at the right scale in WebKit told a layout problem from a gesture problem, and from there the fast double tap and the 15 px text field were the two things to fix.

The next post is about the logo, and how the K came out of the same code that draws the plants.

Play Kinopy at kinopy.day on your phone, and tell me if a double tap ever zooms it!