Skip to content

onHandlerStateChange not firing sometimes on iOS #9

@brentvatne

Description

@brentvatne

Expected behavior

On Android, the events fire as expected.

giphy

15:39:42.515: { id: 'scroll',
15:39:42.515:   oldStateName: 'UNDETERMINED',
15:39:42.515:   newStateName: 'BEGAN' }
15:39:42.519: { id: 'drawer',
15:39:42.519:   oldStateName: 'UNDETERMINED',
15:39:42.519:   newStateName: 'BEGAN' }
15:39:42.521: { id: 'masterdrawer',
15:39:42.521:   oldStateName: 'UNDETERMINED',
15:39:42.521:   newStateName: 'BEGAN' }
15:39:42.570: { id: 'drawer', oldStateName: 'BEGAN', newStateName: 'ACTIVE' }
15:39:44.797: { id: 'scroll', oldStateName: 'BEGAN', newStateName: 'ACTIVE' }
15:39:44.800: { id: 'masterdrawer',
15:39:44.800:   oldStateName: 'BEGAN',
15:39:44.800:   newStateName: 'FAILED' }
15:39:49.217: { id: 'drawer', oldStateName: 'ACTIVE', newStateName: 'END' }
15:39:49.217: 'END OFFSET', -425.2704223632812
15:39:49.235: { id: 'scroll', oldStateName: 'ACTIVE', newStateName: 'END' }
15:39:50.779: { id: 'scroll',
15:39:50.779:   oldStateName: 'UNDETERMINED',
15:39:50.779:   newStateName: 'BEGAN' }
15:39:50.781: { id: 'drawer',
15:39:50.781:   oldStateName: 'UNDETERMINED',
15:39:50.781:   newStateName: 'BEGAN' }
15:39:50.782: { id: 'masterdrawer',
15:39:50.782:   oldStateName: 'UNDETERMINED',
15:39:50.782:   newStateName: 'BEGAN' }
15:39:50.878: { id: 'drawer', oldStateName: 'BEGAN', newStateName: 'ACTIVE' }
15:39:51.589: { id: 'scroll', oldStateName: 'BEGAN', newStateName: 'END' }
15:39:51.590: { id: 'drawer', oldStateName: 'ACTIVE', newStateName: 'END' }
15:39:51.597: { id: 'masterdrawer',
15:39:51.597:   oldStateName: 'BEGAN',
15:39:51.597:   newStateName: 'FAILED' }

Actual behavior

On iOS, only the inner pan is firing (@kmagiera you will know what I mean by this).

giphy-1

15:44:04: { id: 'drawer', oldStateName: 'UNDETERMINED', newStateName: 'BEGAN' }
15:44:04: { id: 'drawer', oldStateName: 'BEGAN', newStateName: 'ACTIVE' }
15:44:09: { id: 'drawer', oldStateName: 'ACTIVE', newStateName: 'END' }
15:44:09: 'END OFFSET', -436.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Gesture handlersThis issue is related to problems with gesture handlersBugBugBash 31.03Close when staleThe issue will be closed automatically if it remains inactivePlatform: iOSThis issue is specific to iOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions