package com.lorentzos.flingswipe.internal;

import android.animation.AnimatorListenerAdapter;
import android.view.View;

/**
 *
 */
class SwipeEvent {

	private final float rotationFactor;
	private final FrameData frameData;
	private final View frame;

	SwipeEvent(float rotationFactor, View frame) {
		this.rotationFactor = rotationFactor;
		frameData = FrameData.fromView(frame);
		this.frame = frame;
	}

	void resultView(@Direction int direction, AnimatorListenerAdapter onAnimationEnd) {
		PointF f = new PointF(frame.getX(), frame.getY());

		frameData.getExitPosition(f, direction, rotationFactor)
				.exit(frame, onAnimationEnd);
	}

}

@@ -540,16 +540,124 @@
 tY());%0A%0A
+%09%09float adjustedFactor = rotationFactor;%0A%09%09if (direction == Direction.LEFT) %7B%0A%09%09%09adjustedFactor *= -1;%0A%09%09%7D%0A%0A
 %09%09frameD
@@ -690,24 +690,24 @@
 ection, 
-rotation
+adjusted
 Factor)%0A

Fix left exit rotation for button events