Skip to content

onPressIn not working on web #3792

@RohovDmytro

Description

@RohovDmytro

Description

Adding onPressIn callback leads to an error.

Failed to execute 'setPointerCapture' on 'Element': InvalidStateError

Steps to reproduce

  1. import { Pressable } from 'react-native-gesture-handler';

  2. <Pressable onPressIn={(}) => {}} />

  3. Press.

  4. Error:

Failed to execute 'setPointerCapture' on 'Element': InvalidStateError

A link to a Gist, an Expo Snack or a link to a repository based on this template that reproduces the bug.

Gesture Handler version

2.29.0

React Native version

0.81.5

Platforms

Web

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions