mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 19:19:03 +01:00 
			
		
		
		
	fix(mobile): closing the sidebar
This commit is contained in:
		
							parent
							
								
									eb97c1e9e2
								
							
						
					
					
						commit
						17b60b21a9
					
				| @ -35,6 +35,7 @@ export default class SidebarContainer extends FlexContainer { | ||||
|         } | ||||
| 
 | ||||
|         const x = e.touches ? e.touches[0].clientX : e.clientX; | ||||
| 
 | ||||
|         if (x > 30 && this.currentTranslate === -100) { | ||||
|             return; | ||||
|         } | ||||
| @ -51,7 +52,7 @@ export default class SidebarContainer extends FlexContainer { | ||||
|         const x = e.touches ? e.touches[0].clientX : e.clientX; | ||||
|         const deltaX = x - this.startX; | ||||
|         if (this.dragState === DRAG_STATE_INITIAL_DRAG) { | ||||
|             if (deltaX > 5) { | ||||
|             if (Math.abs(deltaX) > 5) { | ||||
|                 this.sidebarContainer.style.zIndex = 1000; | ||||
|                 this.originalTransition = this.sidebarWrapper.style.transition; | ||||
|                 this.sidebarWrapper.style.transition = "none"; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran