Bug fixed for Safari which doesn't have TouchEvent Class