Skip to content

PinchGestureHandler State.BEGAN inconsistency on Android/iOS #553

Closed
@wcandillon

Description

@wcandillon

On iOS, the value of focalY is correct when State.BEGAN. However on Android, this value is always 0. Only in State.ACTIVE the focalY value is correct. Please let me know if I can help with this issue.
Interestingly enough this doesn't happen for the scale parameter.

For people having similar issues, here is a potential workaround (to adap to your needs because scale is not affected by this issue):

const pinchBegan = Platform.OS === "ios"
      ? eq(state, State.BEGAN)
      : eq(diff(state), State.ACTIVE - State.BEGAN);

Possible duplicate: #546

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions