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