(e: PressEvent)
| 308 | }, [state]); |
| 309 | |
| 310 | let onPress = (e: PressEvent) => { |
| 311 | if (e.pointerType !== 'keyboard' && e.pointerType !== 'virtual') { |
| 312 | return; |
| 313 | } |
| 314 | |
| 315 | startDragging(e.target as HTMLElement); |
| 316 | }; |
| 317 | |
| 318 | let startDragging = (target: HTMLElement) => { |
| 319 | if (typeof state.options.onDragStart === 'function') { |
no test coverage detected