(e)
| 16504 | const startX = e.clientX; |
| 16505 | const startW = listViewColumnState.widths[colId] ?? def.defaultWidth; |
| 16506 | function onMove(ev) { |
| 16507 | const dx = ev.clientX - startX; |
| 16508 | let nw = startW + dx; |
| 16509 | nw = Math.max(def.min, Math.min(def.max, nw)); |
| 16510 | listViewColumnState.widths[colId] = Math.round(nw); |
| 16511 | applyListViewColumnLayoutToGrid(); |
| 16512 | } |
| 16513 | function onUp() { |
| 16514 | document.removeEventListener('mousemove', onMove); |
| 16515 | document.removeEventListener('mouseup', onUp); |
| 16516 | persistListViewColumnState(); |
| 16517 | } |
| 16518 | document.addEventListener('mousemove', onMove); |
nothing calls this directly
no test coverage detected