Skip to content

Support scroll and swipe events #566

Description

@ioannisj

Description

https://posthog.com/docs/libraries/react-native#autocapture
Right now scrolls and swipes are considered touch, we can probably check if it's a scroll, a swipe, or else.
It's likely possible via heuristics or event metadata, such as the MotionEvent.ACTION_UP and MotionEvent.ACTION_DOWN on Android.
More ideas here https://developer.android.com/develop/ui/views/touch-and-input/gestures/detector

For RN specifically:
https://github.com/PostHog/posthog-js-lite/blob/ae60ef46be7eaa3560ca1657f504c6498a5499dc/posthog-react-native/src/PostHogProvider.tsx#L80-L92
This has to implement something similar.

This applies to:

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