(e: PointerEvent)
| 134 | * so instead of PointerEvent to still get enter/leave and send the matching mouse event. |
| 135 | */ |
| 136 | export function pointerdown(e: PointerEvent): void { |
| 137 | // console.log("pointer down") |
| 138 | if (e.pointerType === 'mouse') return; |
| 139 | (e.target as HTMLElement).releasePointerCapture(e.pointerId) // <- Important! |
| 140 | } |
| 141 | |
| 142 | export function pointerenter(e: PointerEvent): void { |
| 143 | // ignore the initial one we get on pointerdown on ourself |