Snap to pixels when not animating. Fixes #585.