From f7e12b59ea574aeffb3c330734e7191a02279f43 Mon Sep 17 00:00:00 2001 From: Yury Nechaev Date: Thu, 16 Apr 2015 16:01:34 +0300 Subject: [PATCH] Removed lag on touch move The animation block was causing lag appearance, like touch gesture was behind actual UI update. --- EUMShowTouchWindow.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/EUMShowTouchWindow.m b/EUMShowTouchWindow.m index 755d729..51b2a07 100644 --- a/EUMShowTouchWindow.m +++ b/EUMShowTouchWindow.m @@ -71,10 +71,7 @@ - (void)sendEvent:(UIEvent *)event CGRect tFrame = touch.viewTouchPointer.frame; tFrame.origin.x = point.x-self.pointerSize.width/2; tFrame.origin.y = point.y-self.pointerSize.height/2; - [UIView animateWithDuration:kAnimationDuration animations:^{ - touch.viewTouchPointer.frame = tFrame; - - }]; + touch.viewTouchPointer.frame = tFrame; } } }