Skip to content

Commit c2945da

Browse files
Clearify var meaning
1 parent 3dcae36 commit c2945da

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

iloveusomuch/VideosViewController.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
7878
CGPoint touchPoint = [(UITouch*)[touches anyObject] locationInView: self];
7979
CGPoint point = [[self videosPlayer] convertPoint:touchPoint fromLayer: self.layer];
8080

81-
float f1 = -floorf(point.x / [self bounds].size.width * 2) * [self bounds].size.width;
82-
float f2 = -floorf(point.y / [self bounds].size.height * 2) * [self bounds].size.height;
81+
float column = floorf(point.x / [self bounds].size.width * 2);
82+
float row = floorf(point.y / [self bounds].size.height * 2);
83+
84+
float f1 = -column * [self bounds].size.width;
85+
float f2 = -row * [self bounds].size.height;
8386

8487
[UIView
8588
animateWithDuration: ANIMATION_DURATION

0 commit comments

Comments
 (0)