Unify autoscaling and autoscrolling