(target: EventTarget | undefined)
| 58 | } |
| 59 | |
| 60 | function findMember(target: EventTarget | undefined): HTMLElement | undefined { |
| 61 | if (!(target instanceof Element)) return undefined; |
| 62 | const found = target.closest("[data-drag-toggle-group]"); |
| 63 | return found instanceof HTMLElement ? found : undefined; |
| 64 | } |
| 65 | |
| 66 | function onPointerDown(e: PointerEvent) { |
| 67 | if (e.button !== 0) return; |
no outgoing calls
no test coverage detected