use innerHeight for autoscroll