chore: Disable double-tap-to-switch-account
This commit is contained in:
parent
87d6fe9fc8
commit
3020f28ef4
|
@ -326,11 +326,12 @@ extension MainTabBarController {
|
||||||
tabBarLongPressGestureRecognizer.addTarget(self, action: #selector(MainTabBarController.tabBarLongPressGestureRecognizerHandler(_:)))
|
tabBarLongPressGestureRecognizer.addTarget(self, action: #selector(MainTabBarController.tabBarLongPressGestureRecognizerHandler(_:)))
|
||||||
tabBar.addGestureRecognizer(tabBarLongPressGestureRecognizer)
|
tabBar.addGestureRecognizer(tabBarLongPressGestureRecognizer)
|
||||||
|
|
||||||
let tabBarDoubleTapGestureRecognizer = UITapGestureRecognizer()
|
// todo: reconsider the "double tap to change account" feature
|
||||||
tabBarDoubleTapGestureRecognizer.numberOfTapsRequired = 2
|
// let tabBarDoubleTapGestureRecognizer = UITapGestureRecognizer()
|
||||||
tabBarDoubleTapGestureRecognizer.addTarget(self, action: #selector(MainTabBarController.tabBarDoubleTapGestureRecognizerHandler(_:)))
|
// tabBarDoubleTapGestureRecognizer.numberOfTapsRequired = 2
|
||||||
tabBarDoubleTapGestureRecognizer.delaysTouchesEnded = false
|
// tabBarDoubleTapGestureRecognizer.addTarget(self, action: #selector(MainTabBarController.tabBarDoubleTapGestureRecognizerHandler(_:)))
|
||||||
tabBar.addGestureRecognizer(tabBarDoubleTapGestureRecognizer)
|
// tabBarDoubleTapGestureRecognizer.delaysTouchesEnded = false
|
||||||
|
// tabBar.addGestureRecognizer(tabBarDoubleTapGestureRecognizer)
|
||||||
|
|
||||||
self.isReadyForWizardAvatarButton = authContext != nil
|
self.isReadyForWizardAvatarButton = authContext != nil
|
||||||
|
|
||||||
|
|
|
@ -145,12 +145,13 @@ extension SidebarViewController {
|
||||||
sidebarLongPressGestureRecognizer.addTarget(self, action: #selector(SidebarViewController.sidebarLongPressGestureRecognizerHandler(_:)))
|
sidebarLongPressGestureRecognizer.addTarget(self, action: #selector(SidebarViewController.sidebarLongPressGestureRecognizerHandler(_:)))
|
||||||
collectionView.addGestureRecognizer(sidebarLongPressGestureRecognizer)
|
collectionView.addGestureRecognizer(sidebarLongPressGestureRecognizer)
|
||||||
|
|
||||||
let sidebarDoubleTapGestureRecognizer = UITapGestureRecognizer()
|
// todo: reconsider the "double tap to change account" feature
|
||||||
sidebarDoubleTapGestureRecognizer.numberOfTapsRequired = 2
|
// let sidebarDoubleTapGestureRecognizer = UITapGestureRecognizer()
|
||||||
sidebarDoubleTapGestureRecognizer.addTarget(self, action: #selector(SidebarViewController.sidebarDoubleTapGestureRecognizerHandler(_:)))
|
// sidebarDoubleTapGestureRecognizer.numberOfTapsRequired = 2
|
||||||
sidebarDoubleTapGestureRecognizer.delaysTouchesEnded = false
|
// sidebarDoubleTapGestureRecognizer.addTarget(self, action: #selector(SidebarViewController.sidebarDoubleTapGestureRecognizerHandler(_:)))
|
||||||
sidebarDoubleTapGestureRecognizer.cancelsTouchesInView = true
|
// sidebarDoubleTapGestureRecognizer.delaysTouchesEnded = false
|
||||||
collectionView.addGestureRecognizer(sidebarDoubleTapGestureRecognizer)
|
// sidebarDoubleTapGestureRecognizer.cancelsTouchesInView = true
|
||||||
|
// collectionView.addGestureRecognizer(sidebarDoubleTapGestureRecognizer)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue