()
| 184 | // -- selection scheduling -- |
| 185 | |
| 186 | const scheduleSelectionUpdate = () => { |
| 187 | if (selectionFrame !== undefined) return |
| 188 | selectionFrame = requestAnimationFrame(() => { |
| 189 | selectionFrame = undefined |
| 190 | const finishing = pendingSelectionEnd |
| 191 | config.updateSelection(finishing) |
| 192 | if (!pendingSelectionEnd) return |
| 193 | pendingSelectionEnd = false |
| 194 | config.onLineSelectionEnd(lastSelection) |
| 195 | }) |
| 196 | } |
| 197 | |
| 198 | const scheduleDragUpdate = () => { |
| 199 | if (dragFrame !== undefined) return |
no outgoing calls
no test coverage detected