pec1985 / TiDraggable

Native iOS and Android modules for Appcelerator's Titanium Mobile
74 stars 75 forks source link

Pinch to Rotate and Scale on Android #15

Open ygbr opened 10 years ago

ygbr commented 10 years ago

Like the module already does for iOS, it would be nice to have 2-finger (pinch) scale and rotation of the target views both for Android too in order to keep parity.

There is an Android native library that does this perfectly already: https://github.com/Almeros/android-gesture-detectors

There should be two boolean parameters for this: canResize and canRotate

@iotashan already mapped the pinch events on Android on his last commit, we just need to scale / rotate the target views on Android and also keep the rotating / scaling from on iOS. Follows the commit link:

https://github.com/iotashan/TiDraggable/commit/fe2e4f7c32ac8ce80b8b1847d2831f4b4599c789