+ Fixes #60: Drawing direction of arrow.

This commit is contained in:
Moritz Haarmann 2014-03-18 23:24:30 +01:00
parent ecbcc30377
commit bbcb8d79a0

View File

@ -49,7 +49,7 @@
CGFloat lineWidth = MAX(self.frame.size.width / 10.0f,10); CGFloat lineWidth = MAX(self.frame.size.width / 10.0f,10);
CGFloat startX, startY, endX, endY; CGFloat startX, startY, endX, endY;
if ( self.movedDelta.width > 0){ if ( self.movedDelta.width < 0){
startX = CGRectGetMinX(self.bounds); startX = CGRectGetMinX(self.bounds);
endX = CGRectGetMaxX(self.bounds); endX = CGRectGetMaxX(self.bounds);
} else { } else {
@ -58,7 +58,7 @@
} }
if ( self.movedDelta.height > 0){ if ( self.movedDelta.height < 0){
startY = CGRectGetMinY(self.bounds); startY = CGRectGetMinY(self.bounds);
endY = CGRectGetMaxY(self.bounds); endY = CGRectGetMaxY(self.bounds);
} else { } else {