fix selection cursor not auto-scrolling

closes #390
closes #391