src/Splitter.js
// Calculate the dimensions of the panes and update state
Calculate the dimensions of the panes and update state
Calculate the dimensions of the panes and update state
function onDocMouseMove(evt) {
    if (resizing) {
      const { x, y } = splitterElem.current.getBoundingClientRect();
      updateSizes(vertical ? evt.clientY - y : evt.clientX - x);
    }
  }
function onDocMouseMove ( evt ) { if ( resizing ) { const { x , y } = splitterElem . current . getBoundingClientRect ( ) ; updateSizes ( vertical ? evt . clientY - y : evt . clientX - x ) ; } }
Calculate the dimensions of the panes and update state
Calculate the dimensions of the panes and update state
// convert the screen coordinates to the parent coord system