File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,11 @@ - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
78
78
CGPoint touchPoint = [(UITouch*)[touches anyObject ] locationInView: self ];
79
79
CGPoint point = [[self videosPlayer ] convertPoint: touchPoint fromLayer: self .layer];
80
80
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 ;
83
86
84
87
[UIView
85
88
animateWithDuration: ANIMATION_DURATION
You can’t perform that action at this time.
0 commit comments