Skip to content

Pressable: multi-touch causes “Cannot find single active touch” in Firefox for iOS #2964

Open

Description

@Mancitiss

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

Touching the default Pressable with multiple fingers produces Cannot find single active touch in Firefox for iOS. The reproduction contains only a full-screen Pressable and a press counter. So far, I have only observed this in Firefox.

Expected behavior

Multi-touch should be handled or cancelled without errors.

Steps to reproduce

Environment: iPhone XS, iOS 16.7.2, Firefox 160.0; react-native-web 0.21.4, React/React DOM 19.3.0, React Native 0.88.1, Expo 58.0.25.

  1. In the linked reproduction repository, run:
npm ci
npx expo start --web --lan
  1. Open the computer’s LAN URL in Firefox on an iPhone connected to the same network.

  2. Touch and release the full-screen Pressable with two or more fingers.

  3. Observe Cannot find single active touch in LogBox.

Test case

https://github.com/Mancitiss/pressable-minimal

Additional comments

Suspected cause: Firefox on iOS returns negative Touch.identifier values. These are stored as properties on touchBank, but the remaining-active-touch search only iterates nonnegative array indices. When the previously selected touch ends, the remaining negative-ID touch is missed, producing Cannot find single active touch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions