MAPG-213 move visibility workaround to Game.showResultMap
This commit is contained in:
		
							parent
							
								
									c5d2591371
								
							
						
					
					
						commit
						5cae286a5b
					
				| @ -202,11 +202,6 @@ | |||||||
|                     return; |                     return; | ||||||
|                 } |                 } | ||||||
| 
 | 
 | ||||||
|                 // TODO: refactor - it is necessary for mobile
 |  | ||||||
|                 if (window.getComputedStyle(document.getElementById('guess')).visibility === 'hidden') { |  | ||||||
|                     document.getElementById('showGuessButton').click(); |  | ||||||
|                 } |  | ||||||
| 
 |  | ||||||
|                 document.getElementById('guessButton').disabled = true; |                 document.getElementById('guessButton').disabled = true; | ||||||
|                 document.getElementById('panoCover').style.visibility = 'visible'; |                 document.getElementById('panoCover').style.visibility = 'visible'; | ||||||
| 
 | 
 | ||||||
| @ -466,6 +461,11 @@ | |||||||
|         }, |         }, | ||||||
| 
 | 
 | ||||||
|         showResultMap: function (result, resultBounds) { |         showResultMap: function (result, resultBounds) { | ||||||
|  |             // TODO: refactor - it is necessary for mobile
 | ||||||
|  |             if (window.getComputedStyle(document.getElementById('guess')).visibility === 'hidden') { | ||||||
|  |                 document.getElementById('showGuessButton').click(); | ||||||
|  |             } | ||||||
|  | 
 | ||||||
|             if (Game.adaptGuess) { |             if (Game.adaptGuess) { | ||||||
|                 document.getElementById('guess').classList.remove('adapt'); |                 document.getElementById('guess').classList.remove('adapt'); | ||||||
|             } |             } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user