MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / onMouseMove

Function onMouseMove

devtools/panel.bundle.js:2430–2444  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2428 });
2429
2430 function onMouseMove(e) {
2431 if (!currentResizer || !headerCell || !colClass) return;
2432
2433 const diff = e.pageX - startX;
2434 const newWidth = Math.max(40, startWidth + diff);
2435
2436 table.style.setProperty('--col-' + colClass + '-width', newWidth + 'px');
2437
2438 if (colClass === 'data') {
2439 const dataCells = table.querySelectorAll('.col-data');
2440 dataCells.forEach(cell => {
2441 cell.style.flex = 'none';
2442 });
2443 }
2444 }
2445
2446 function onMouseUp() {
2447 if (currentResizer) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected