Added drag listener to support autoscrolling.