mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-02-17 07:50:14 -05:00
RotateGesture fix
I have no idea why I put that condition before, but obviously I expect to have -1 rotation instead of 359.
This commit is contained in:
parent
d65cf3ac90
commit
5b0ae2ef00
1 changed files with 0 additions and 4 deletions
|
@ -108,10 +108,6 @@ package org.gestouch.gestures
|
|||
var a1:Number = Math.atan2(_lastVector.y, _lastVector.x);
|
||||
var a2:Number = Math.atan2(_currVector.y, _currVector.x);
|
||||
var angle:Number = a2 - a1;
|
||||
if (angle < 0)
|
||||
{
|
||||
angle += GestureUtils.PI_DOUBLE;
|
||||
}
|
||||
angle *= GestureUtils.RADIANS_TO_DEGREES;
|
||||
|
||||
_dispatch(new RotateGestureEvent(RotateGestureEvent.GESTURE_ROTATE, true, false, GesturePhase.UPDATE, _lastLocalCentralPoint.x, _lastLocalCentralPoint.y, 1, 1, angle));
|
||||
|
|
Loading…
Reference in a new issue