forked from MapComplete/MapComplete
		
	Fix: disable rotation on mobile if the user enabled this
This commit is contained in:
		
							parent
							
								
									708e624779
								
							
						
					
					
						commit
						93a30fdba5
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -455,8 +455,10 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
 | 
				
			||||||
            map.rotateTo(0, { duration: 0 })
 | 
					            map.rotateTo(0, { duration: 0 })
 | 
				
			||||||
            map.setPitch(0)
 | 
					            map.setPitch(0)
 | 
				
			||||||
            map.dragRotate.disable()
 | 
					            map.dragRotate.disable()
 | 
				
			||||||
 | 
					            map.touchZoomRotate.disableRotation();
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            map.dragRotate.enable()
 | 
					            map.dragRotate.enable()
 | 
				
			||||||
 | 
					            map.touchZoomRotate.enableRotation();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue