(e: MouseEvent)
| 17 | * @param {MouseEvent | TouchEvent} e The event |
| 18 | */ |
| 19 | export function eventShouldStartDrag(e: MouseEvent): boolean { |
| 20 | // For touch events, button will be undefined. If e.button is defined, |
| 21 | // then it should be MouseButton.Left. |
| 22 | return e.button === undefined || e.button === MouseButton.Left |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Only touch events and mouse events where the left mouse button is no longer held should end a drag. |
no outgoing calls
no test coverage detected
searching dependent graphs…