mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-29 00:50:40 +00:00
+ Fixes #60: Drawing direction of arrow.
This commit is contained in:
parent
ecbcc30377
commit
bbcb8d79a0
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user