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(_:)))
|
||||
tabBar.addGestureRecognizer(tabBarLongPressGestureRecognizer)
|
||||
|
||||
let tabBarDoubleTapGestureRecognizer = UITapGestureRecognizer()
|
||||
tabBarDoubleTapGestureRecognizer.numberOfTapsRequired = 2
|
||||
tabBarDoubleTapGestureRecognizer.addTarget(self, action: #selector(MainTabBarController.tabBarDoubleTapGestureRecognizerHandler(_:)))
|
||||
tabBarDoubleTapGestureRecognizer.delaysTouchesEnded = false
|
||||
tabBar.addGestureRecognizer(tabBarDoubleTapGestureRecognizer)
|
||||
// todo: reconsider the "double tap to change account" feature
|
||||
// let tabBarDoubleTapGestureRecognizer = UITapGestureRecognizer()
|
||||
// tabBarDoubleTapGestureRecognizer.numberOfTapsRequired = 2
|
||||
// tabBarDoubleTapGestureRecognizer.addTarget(self, action: #selector(MainTabBarController.tabBarDoubleTapGestureRecognizerHandler(_:)))
|
||||
// tabBarDoubleTapGestureRecognizer.delaysTouchesEnded = false
|
||||
// tabBar.addGestureRecognizer(tabBarDoubleTapGestureRecognizer)
|
||||
|
||||
self.isReadyForWizardAvatarButton = authContext != nil
|
||||
|
||||
|
|
|
@ -145,12 +145,13 @@ extension SidebarViewController {
|
|||
sidebarLongPressGestureRecognizer.addTarget(self, action: #selector(SidebarViewController.sidebarLongPressGestureRecognizerHandler(_:)))
|
||||
collectionView.addGestureRecognizer(sidebarLongPressGestureRecognizer)
|
||||
|
||||
let sidebarDoubleTapGestureRecognizer = UITapGestureRecognizer()
|
||||
sidebarDoubleTapGestureRecognizer.numberOfTapsRequired = 2
|
||||
sidebarDoubleTapGestureRecognizer.addTarget(self, action: #selector(SidebarViewController.sidebarDoubleTapGestureRecognizerHandler(_:)))
|
||||
sidebarDoubleTapGestureRecognizer.delaysTouchesEnded = false
|
||||
sidebarDoubleTapGestureRecognizer.cancelsTouchesInView = true
|
||||
collectionView.addGestureRecognizer(sidebarDoubleTapGestureRecognizer)
|
||||
// todo: reconsider the "double tap to change account" feature
|
||||
// let sidebarDoubleTapGestureRecognizer = UITapGestureRecognizer()
|
||||
// sidebarDoubleTapGestureRecognizer.numberOfTapsRequired = 2
|
||||
// sidebarDoubleTapGestureRecognizer.addTarget(self, action: #selector(SidebarViewController.sidebarDoubleTapGestureRecognizerHandler(_:)))
|
||||
// sidebarDoubleTapGestureRecognizer.delaysTouchesEnded = false
|
||||
// sidebarDoubleTapGestureRecognizer.cancelsTouchesInView = true
|
||||
// collectionView.addGestureRecognizer(sidebarDoubleTapGestureRecognizer)
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue