()
| 65 | } |
| 66 | |
| 67 | export function createSelectionState(): SelectionState { |
| 68 | return { |
| 69 | anchor: null, |
| 70 | focus: null, |
| 71 | isDragging: false, |
| 72 | anchorSpan: null, |
| 73 | scrolledOffAbove: [], |
| 74 | scrolledOffBelow: [], |
| 75 | scrolledOffAboveSW: [], |
| 76 | scrolledOffBelowSW: [], |
| 77 | lastPressHadAlt: false, |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | export function startSelection( |
| 82 | s: SelectionState, |