Skip to content

[🐞] Headless Modal: Touch iOS interactions are broken by default #1113

@Mike-Neto

Description

@Mike-Neto

Which package is affected?

Headless Kit

Describe the bug

Due to how disableBodyScroll works on iOS devices specifically any interaction that would require movement within a modal is broken by default.

Reproduction

https://qwikui.com/repro

Steps to reproduce

Wrap a <input type="range" /> into the Modal component .
Within a iOS device notice that movement based interactions fail while tapping directly on the range will still work

System Info

System:
    OS: macOS 15.5
    CPU: (14) arm64 Apple M4 Pro
    Memory: 3.81 GB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.15.0 - ~/.nvm/versions/node/v22.15.0/bin/node
    npm: 10.9.2 - ~/.nvm/versions/node/v22.15.0/bin/npm
  Browsers:
    Chrome: 138.0.7204.93
    Safari: 18.5
  npmPackages:
    @builder.io/qwik: 1.14.1 => 1.14.1 
    @builder.io/qwik-city: 1.14.1 => 1.14.1 
    @qwik-ui/headless: 0.6.8 => 0.6.8 
    typescript: 5.8.3 => 5.8.3 
    vite: 5.4.19 => 5.4.19 


But the issue is only present while using a iOS device

Additional Information

I tried to create a stackblitz for the repro but couldn't get it to instal dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions