bug fixes: focus, center
avoid reset when dragging