Fix the bug that move the mouse when test typing in relative mode