(e: DragEvent)
| 134 | }; |
| 135 | |
| 136 | let fireDropExit = (e: DragEvent) => { |
| 137 | setDropTarget(false); |
| 138 | |
| 139 | if (typeof options.onDropExit === 'function') { |
| 140 | let rect = (e.currentTarget as HTMLElement).getBoundingClientRect(); |
| 141 | options.onDropExit({ |
| 142 | type: 'dropexit', |
| 143 | x: e.clientX - rect.x, |
| 144 | y: e.clientY - rect.y |
| 145 | }); |
| 146 | } |
| 147 | }; |
| 148 | |
| 149 | let onDragOver = (e: DragEvent) => { |
| 150 | e.preventDefault(); |
no outgoing calls
no test coverage detected