[library] Save state using the first actually visible position