Fixed mouse and touch events position.