From e44e266c1fe949cb928f7a0bfe44112675508491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Mo=CC=88ller?= Date: Sun, 27 Apr 2014 20:48:29 +0200 Subject: [PATCH 1/2] Smoother dragging with correct value for y changes. --- TextKitDemo/Interaction/TKDInteractionViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TextKitDemo/Interaction/TKDInteractionViewController.m b/TextKitDemo/Interaction/TKDInteractionViewController.m index 5160870..e057c09 100644 --- a/TextKitDemo/Interaction/TKDInteractionViewController.m +++ b/TextKitDemo/Interaction/TKDInteractionViewController.m @@ -52,7 +52,7 @@ - (void)circlePan:(UIPanGestureRecognizer *)pan CGPoint circleCenter = self.circleView.center; circleCenter.x = location.x - _panOffset.x + self.circleView.frame.size.width / 2; - circleCenter.y = location.y - _panOffset.y + self.circleView.frame.size.width / 2; + circleCenter.y = location.y - _panOffset.y + self.circleView.frame.size.height / 2; self.circleView.center = circleCenter; // Update exclusion path From 443224704f21bb2acb6d9261cbc9c878288b876e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Mo=CC=88ller?= Date: Sun, 27 Apr 2014 20:49:19 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Project=20updated=20to=20Xcode=E2=80=99s=20?= =?UTF-8?q?recommended=20settings.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TextKitDemo.xcodeproj/project.pbxproj | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/TextKitDemo.xcodeproj/project.pbxproj b/TextKitDemo.xcodeproj/project.pbxproj index 2540ab4..edbc25e 100644 --- a/TextKitDemo.xcodeproj/project.pbxproj +++ b/TextKitDemo.xcodeproj/project.pbxproj @@ -214,7 +214,7 @@ isa = PBXProject; attributes = { CLASSPREFIX = TKD; - LastUpgradeCheck = 0500; + LastUpgradeCheck = 0510; ORGANIZATIONNAME = "Max Seelemann"; }; buildConfigurationList = 5041481F17F80E5C008D88C6 /* Build configuration list for PBXProject "TextKitDemo" */; @@ -295,7 +295,6 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; @@ -334,7 +333,6 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES;