Don’t bind touch and mouse events at the same time.

Don’t bind touch and mouse events at the same time. This will cause run script two times on browsers supporting touch events, and run script three times on chrome when use "Emulate touch events".
If mobile bind touch events, otherwise bind mouse events.