(event: MouseEvent | TouchEvent)
| 141 | } |
| 142 | |
| 143 | const handleDocumentMouseDown = (event: MouseEvent | TouchEvent) => { |
| 144 | const isMouseDown = IS_MOUSEDOWN.get(editor) |
| 145 | const isTouching = IS_TOUCHING.get(editor) |
| 146 | if (!isMouseDown && !isTouching && !event.defaultPrevented) setFocused(false) |
| 147 | } |
| 148 | |
| 149 | const handleSelecting = (point: Point | null, rest = true, forceFocus = true) => { |
| 150 | if (!point) return |
nothing calls this directly
no test coverage detected
searching dependent graphs…