Fixes #471, slight panning after selecting