Fix moving cursor does not become grayed on location loss