Now listens for both touch and click events.

No longer requires isTouchdevice variable.

A fix for #289