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.