fixing touch/mouse events