From ebf59450cde291d1734543db04c55c364d684555 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Tue, 29 Nov 2016 21:11:09 -0800 Subject: [PATCH] Fixes issue where touches near left edge of screen were delayed --- Delta/AppDelegate.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Delta/AppDelegate.swift b/Delta/AppDelegate.swift index 6a56585..176e28a 100644 --- a/Delta/AppDelegate.swift +++ b/Delta/AppDelegate.swift @@ -26,6 +26,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate self.window?.tintColor = UIColor.deltaPurple + // Disable system gestures that delay touches on left edge of screen + for gestureRecognizer in self.window?.gestureRecognizers ?? [] where NSStringFromClass(type(of: gestureRecognizer)).contains("GateGesture") + { + gestureRecognizer.delaysTouchesBegan = false + } + // Database DatabaseManager.shared.loadPersistentStores { (description, error) in