Implemented to memory last cursor state when cursor moved