Implemented drag for iOS.

- Use same drag API on iOS and Android.
- Fixed some indentations.
Merge pull request #1777 from paymand/ios_drag

Implemented drag for iOS.