Skip to content

Passive event listeners in Safari iOS > 11.3 #1505

Closed
@kennethkufluk

Description

@kennethkufluk

I know Chrome implemented passive event listeners for some events in Chrome 51.
Safari did the same from iOS 11.3 onwards, but they have a different workaround:
You need to attach your event with { passive: false } if you want to be able to preventDefault.
https://bugs.webkit.org/show_bug.cgi?id=182521

Looks like React still doesn't have a decision on support for passive events.
facebook/react#6436

Until that is decided, would it be possible for touch events on the View to be non-passive by default?

(I searched around the code and issues for other mention of this and couldn't find any, but if you've solved this by some other means, I'd be very interested to learn how)

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions