Skip to content

Prevented default in onPointerDown does not trigger onOutsideClick #16

Open
@joux3

Description

@joux3

Repro: https://codesandbox.io/s/p9jl7jq627

Clicking on a div with mouseDown default preventer triggers onOutsideClick, while clicking on a div with pointerDown default preventer does not.

This is because mouseDown will not be fired if the default is prevented in pointerDown, see step 6 under 7.1 in Pointer Events Specification.

Is this something that this library should support? I tried switching mouseDown -> pointerDown and mouseUp -> pointerUp and everything seemed to work like it should.

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