Skip to content

Bug Report: Mobile Safari/Chrome iOS crashes when pinch-zooming merch product modal #17108

@BrandonCANalytics

Description

@BrandonCANalytics

Report

When viewing a merch product on iOS, pinch-zooming the product image inside the product modal can cause the page to reload and eventually crash.

URL
https://posthog.com/merch?product=james-hawkins-ultra-action-figure

Steps to reproduce

  1. Open the URL above on an iPhone.
  2. Pinch to zoom as far as you can

while the product modal is open.
3. The browser reloads the page.
4. After the page reloads and reopens the product modal, pinch to zoom again.

Actual result

  • Safari displays: A problem repeatedly occurred on "https://posthog.com/merch?product=james-hawkins-ultra-action-figure"
  • Chrome on iOS displays: Can't open this page

The behavior was reproducible across multiple attempts.

Technical info

  • Device: iPhone 17 Pro
  • Browsers: Safari and Chrome (iOS)
  • Page: /merch product modal opened via ?product=james-hawkins-ultra-action-figure

While investigating, I noticed the product page is rendered within a fixed-position modal containing a scrollable content area and image carousel. This may be related to how iOS WebKit handles pinch-zoom and viewport changes inside nested scroll containers, though I have not confirmed the root cause.

The product itself does not appear unusually large. The primary image is approximately 1250x1248 and ~2.5 MB, while other products contain more and larger images without obviously explaining the crash.

Expected outcome, or solution

Pinch-zooming a product image should either:

  • Work normally without reloading or crashing the page, or
  • Be gracefully constrained if zoom gestures are not supported within the modal experience.

Potential areas to investigate:

  • Interaction between the modal, scroll container, and iOS pinch-zoom behavior
  • Overscroll containment and scroll chaining on mobile Safari
  • Fixed-position modal sizing (100vw / transformed layouts) on iOS
  • Radix Dialog and ScrollArea behavior during visual viewport changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions