Alteridem.WinTouch.GestureListener.OnRotate C# (CSharp) Method

OnRotate() private method

private OnRotate ( GestureInfo info ) : bool
info GestureInfo
return bool
        private bool OnRotate( GestureInfo info )
        {
            if ( Rotate != null )
            {
                if ( info.Begin )
                {
                    _lastRotation = 0;
                }
                var args = new RotateEventArgs( info, _lastRotation );
                if ( !info.Begin )
                {
                    // First rotation is the angle the fingers are at, so don't use it
                    _lastRotation = args.TotalAngle;
                }
                Rotate( this, args );
                return args.Handled;
            }
            return false;
        }