fix bug that mouse position incorrect because html elements in the page.