don't scroll if selection is empty. closes #659