Implemented drag for iOS.

- Use same drag API on iOS and Android.
- Fixed some indentations.