normalize touch/mouse