結果 : react get current cursor position