const handleMouseMove = useCallback((e) => {
const newHeight = e.clientY -document.body.offsetTop ;
if (newHeight > minDrawerHeight && newHeight < maxDrawerHeight) {
setDrawerHeight(newHeight);
}
}, []);
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
const handleMouseMove = useCallback((e) => {
const newHeight = e.clientY -document.body.offsetTop ;
if (newHeight > minDrawerHeight && newHeight < maxDrawerHeight) {
setDrawerHeight(newHeight);
}
}, []);