Fix the problem of scroll location jumping after pasting.