How to increase height as I move cursor up and decrease as I move cursor down which is opposite to what the code below does

const handleMouseMove = useCallback((e) => {

const newHeight =  e.clientY -document.body.offsetTop ;
if (newHeight > minDrawerHeight && newHeight < maxDrawerHeight) {
  setDrawerHeight(newHeight);
}

}, []);