auto scroll when moving cursor