Fix for the unexpected scrolling happened when entering a Math inset.