fix touch offest in window mode