As you can see, the above cube rotation, acceleration, deceleration stop all through the AlloyTouch to achieve.
Demo(Mobile)
Code
factor need to continue to debug the best value for the speed and time of inertial motion let go after the best effect.
moveFactor need to continue to debug the best value, is to let the lateral drag distance map to achieve the rotation angle.If you don't need an inertial motion. For example, the king of glory in the task rotation is not inertia, the finger left the screen will immediately stop moving. Such as:
You only need to set the AlloyTouch inertia to false.
Non inertia demo
Code
AlloyTouch
Github:
Any question, please let me know: