forked from MapComplete/MapComplete
		
	Fix: don't measure compass if alpha is null, fix #1787
This commit is contained in:
		
							parent
							
								
									d4bfd3894a
								
							
						
					
					
						commit
						3461ed6099
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -77,6 +77,9 @@ export class Orientation { | |||
|     } | ||||
| 
 | ||||
|     private update(event: DeviceOrientationEvent) { | ||||
|         if(event.alpha === null || event.beta === null || event.gamma === null){ | ||||
|             return | ||||
|         } | ||||
|         this.gotMeasurement.setData(true) | ||||
|         // IF the phone is lying flat, then:
 | ||||
|         // alpha is the compass direction (but not absolute)
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue