Public: anyone can read this; the crew can change it.
Migrated from github.com/amirmushichge/pixel-plays
From the app: pressing and holding i. mobile keeps highlighting and adding the iphone magni... #89
Merged 33d 20h ago, live in production
Pressing and holding in a game no longer selects text or brings up the iPhone magnifier or callout. I didn't check this on an actual iPhone. The one new test passes: it reads each game's HTML.
-
Reviews
ApprovedAll 32 game pages get the same one-line rule (user-select, touch-callout, tap-highlight off on html/body), which stops the iOS magnifier and highlight on press-and-hold. No game has an input or textarea, so nothing that needs selection is broken. The preview serves the rule, and serve.test.mjs checks every game directory so a new game without it fails. The bell-tower timeout bump is a small, explained change to a slow test. Minor, not blocking: the rule sits as a separate line right above the existing html, body rule; it could be merged into it.
-
Checks
shipped production is serving it deploy 7b8dc66
-
History
- bell-tower page test: allow 30s, it simulates a full peal and sat at the 5s default 7c24f66
- Games: disable text selection, iOS magnifier and tap highlight on touch 806b12b
- Add Soapbox Derby: steer a wooden cart down a cobbled hill between the hay bales (#80) 4512fea
- Add Signal Box: repeat the lever sequence to route each train through a country junction (#79) 6436bd8
- Add Espresso Bar: pour each coffee to the line as cups slide past under the spout (#71) 50e7872
- Add Wood Split: split logs on a chopping block by bringing the axe down on the crack (#67) 553ae24
- Add Goalkeeper: dive left or right to save ten penalties in a village football ground (#75) 8b54ed6
- Add Bell Tower: ring the peal back on four bells, one bell longer each round (#69) 8a3ca29
- Add Archery: ten arrows at a straw target, reading the wind off a pennant (#64) 8327827
- Add Tram Line: drive a city tram and stop each door on the yellow mark (#63) cf817a1
- Add Tightrope: walk a wire between two rooftops, leaning to keep your balance in the wind (#60) 93e1bbc
- games need to have a much higher playability standard. tests that actually pl… (#49) 8c0d92c
- Add Ice Fishing: drop a line through the ice and reel each fish up before the line snaps (#58) 07375f1
- Add Bread Oven: slide loaves into a wood-fired oven and pull each one out golden (#54) 9c2022a
- Add Beekeeper: smoke the hive calm and lift out honey frames before the bees swarm (#53) fd12dfd
- Add Campfire: keep the fire burning through the night by feeding it the right logs (#52) db506c3
- better game browser. right now the list is kinda lame. i would love to see mo… (#47) cd10642
- fantastic og metadata. the fact that these games are static means we could re… (#48) ecaabdf
- metrics to quantitatively produce better games. which games are played the mo… (#46) 4d827a6
- Add Domino Run: set out a line of dominoes along a path, then tip the first (#41) 2ed57d4
The failing test was bell-tower/page.test.mjs, and I've raised its timeout to 30 s and pushed. The fix passes locally, but I haven't seen the forge's check run on it yet.
The test plays a whole peal in the simulated page. Run alone it takes about 4.4–5 s, which is at bun's default 5 s limit. It timed out in the deploy after about 5.8 s while the rest of the suite was running. My change added only a CSS rule and a separate test, so neither touches this test or the bell tower.
I only changed the timeout, not what the test checks. If it still times out under load, the next step is to make the page boot faster in playtest.mjs.
Pressing and holding in a game no longer selects text or brings up the iPhone magnifier or callout. I didn't check this on an actual iPhone. The one new test passes: it reads each game's HTML.
serve.test.mjspasses (45 tests). I didn't runtsc, and the repo has no gate or design-lint scripts to run./index.html) now has one extra rule under its{ box-sizing }line. It setsuser-select: none,-webkit-user-select: none,-webkit-touch-callout: noneand a transparent tap highlight onhtml, body.serve.test.mjsgoes through every game folder and fails if a page lacks the rule./index.html) is untouched, because its search box needs normal text selection. I also didn't add a shared stylesheet. Each game keeps its CSS inline, so I followed that.To try it, open any game on a phone, e.g.
/tightrope/, and press and hold anywhere.Closes #82