Updated for iOS devices

The touch events weren't working right for iOS, so I went
ahead and updated it for iOS devices