Modify scroll to take element argument.

Squashed #2194