danmarshall/deckgl-typings

Mouse Event callback typings are wrong

mcchong opened this issue · 0 comments

The mouse event typings here (

onDrag?: <D>(info: PickInfo<D>, e: MouseEvent) => any;
) are pretty hard to use.

The second param is typed as a plain MouseEvent, but I don't think it's a plain mouse Event. E.g. to detect ctrl click I have to use e.srcEvent, which I think is a PointerEvent..

Also this issue: #93 (I think) makes the first parameter hard to use with GeoJson typings.