MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / handleSearch

Function handleSearch

renderer.js:16506–16515  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

renderListItemsFunction · 0.85

Tested by

no test coverage detected