From 92dbd370d13104a308644c80befed274e27e83f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Mo=CC=88ller?= Date: Tue, 29 Apr 2014 10:39:53 +0200 Subject: [PATCH 1/2] Prevented jumping when dragging starts by using height for y-value. --- 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 36456b873a7f52309d28387ea6a9488ee59214a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Mo=CC=88ller?= Date: Tue, 29 Apr 2014 10:41:31 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Updated=20project=20settings=20to=20Xcode?= =?UTF-8?q?=E2=80=99s=20recommended=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;