Skip to content

Turn off the photo tilt on touch devices - #48

Merged
riceset merged 1 commit into
v4from
riceset/tilt-desktop-only
Nov 30, 2026
Merged

riceset merged 1 commit into
v4from
riceset/tilt-desktop-only

Conversation

@riceset

@riceset riceset commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • The tilt on the About portrait and featured article photo now only runs where the primary pointer can hover ((hover: hover) and (pointer: fine)), and only responds to mouse input, so phones and tablets show a still photo.
  • Removes the touch-drag handling and the touch-action: pan-y rule that existed for it.

Test plan

  • tsc --noEmit and prettier pass
  • Headless browser: desktop hover still tilts on /about and /articles; emulated iPhone 13 tap leaves both photos untouched; no page errors

🤖 Generated with Claude Code

Only run it where the primary pointer can hover (mouse or trackpad), and
ignore touch and pen input even there, so phones and tablets show a
still photo. Drops the touch-drag handling and touch-action rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@riceset
riceset merged commit ed1b0e4 into v4 Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant