Merge pull request #4543 from vector-im/gil/element_4438

it's easy for the back button to trigger a leftpanel reveal (#4438)
This commit is contained in:
Gil Eluard
2021-07-12 10:53:19 +02:00
committed by GitHub
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ Changes to be released in next version
* Fix crash on Apple Silicon Macs.
* Media Picker: Generate video thumbnails with the correct orientation (#4515).
* Directory List (pop-up one): Fix duplicate rooms being shown (#4537).
* Use different title for scan button for self verification (#4525)
* Use different title for scan button for self verification (#4525).
* it's easy for the back button to trigger a leftpanel reveal (#4438).
⚠️ API Changes
*
+3 -3
View File
@@ -245,9 +245,9 @@ final class TabBarCoordinator: NSObject, TabBarCoordinatorType {
}
private func setupSideMenuGestures() {
self.parameters.appNavigator.sideMenu.addScreenEdgePanGesturesToPresent(to: self.masterNavigationController.view)
self.parameters.appNavigator.sideMenu.addPanGestureToPresent(to: self.masterNavigationController.navigationBar)
if let rootViewController = self.masterNavigationController.viewControllers.first {
self.parameters.appNavigator.sideMenu.addScreenEdgePanGesturesToPresent(to: rootViewController.view)
}
}
// MARK: Navigation