implemented both touch and normal webkit events