Improve time scrolling performance

Fixes #240.

Fixes a bug where the frame number was set to a string by the slider.