(e: DragEvent)
| 121 | }).current; |
| 122 | |
| 123 | let fireDropEnter = (e: DragEvent) => { |
| 124 | setDropTarget(true); |
| 125 | |
| 126 | if (typeof options.onDropEnter === 'function') { |
| 127 | let rect = (e.currentTarget as HTMLElement).getBoundingClientRect(); |
| 128 | options.onDropEnter({ |
| 129 | type: 'dropenter', |
| 130 | x: e.clientX - rect.x, |
| 131 | y: e.clientY - rect.y |
| 132 | }); |
| 133 | } |
| 134 | }; |
| 135 | |
| 136 | let fireDropExit = (e: DragEvent) => { |
| 137 | setDropTarget(false); |
no outgoing calls
no test coverage detected