disable burger menu in msg mode
This commit is contained in:
		
							parent
							
								
									e135556fa6
								
							
						
					
					
						commit
						dd2abde5b8
					
				@ -129,6 +129,7 @@ struct MainView: View {
 | 
			
		||||
            .gesture(
 | 
			
		||||
                DragGesture()
 | 
			
		||||
                    .onChanged { gesture in
 | 
			
		||||
                        if !isMessengerModeEnabled {
 | 
			
		||||
                            if !isSideMenuPresented && gesture.startLocation.x > 60 { return }
 | 
			
		||||
                            
 | 
			
		||||
                            let translation = gesture.translation.width
 | 
			
		||||
@ -142,7 +143,9 @@ struct MainView: View {
 | 
			
		||||
                            // Жестко ограничиваем итоговое смещение между 0 и шириной меню
 | 
			
		||||
                            self.menuOffset = max(0, min(menuWidth, newOffset))
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                    .onEnded { gesture in
 | 
			
		||||
                        if !isMessengerModeEnabled {
 | 
			
		||||
                            if !isSideMenuPresented && gesture.startLocation.x > 60 { return }
 | 
			
		||||
                            
 | 
			
		||||
                            let threshold = menuWidth * 0.4
 | 
			
		||||
@ -157,6 +160,7 @@ struct MainView: View {
 | 
			
		||||
                                self.menuOffset = isSideMenuPresented ? menuWidth : 0
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
            )
 | 
			
		||||
        }
 | 
			
		||||
        .navigationViewStyle(StackNavigationViewStyle())
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user