Fix scroller sync when scroll-past-end is off

Fix #217.