auto-fit, handleMouseMove fix