forked from MapComplete/MapComplete
		
	Tweaks to icons, add direction to benches, tweak to direction input
This commit is contained in:
		
							parent
							
								
									c1490267e6
								
							
						
					
					
						commit
						8e5e249e6b
					
				
					 7 changed files with 103 additions and 41 deletions
				
			
		|  | @ -39,14 +39,14 @@ export class FullScreenMessageBox extends UIElement { | |||
| 
 | ||||
|         this.returnToTheMap = | ||||
|             new Combine([Translations.t.general.returnToTheMap.Clone().SetStyle("font-size:xx-large")]) | ||||
|                 .SetStyle("background:#7ebc6f;" + | ||||
|                 .SetStyle("background:var(--catch-detail-color);" + | ||||
|                     "position: fixed;" + | ||||
|                     "z-index: 10000;" + | ||||
|                     "bottom: 0;" + | ||||
|                     "left: 0;" + | ||||
|                     `height: ${FullScreenMessageBox._toTheMap_height};` + | ||||
|                 "width: 100vw;" + | ||||
|                 "color: white;" + | ||||
|                 "color: var(--catch-detail-color-contrast);" + | ||||
|                 "font-weight: bold;" + | ||||
|                 "pointer-events: all;" + | ||||
|                 "cursor: pointer;" + | ||||
|  |  | |||
|  | @ -62,7 +62,11 @@ export default class DirectionInput extends InputElement<string> { | |||
| 
 | ||||
| 
 | ||||
|         htmlElement.ontouchmove = (ev: TouchEvent) => { | ||||
|             console.log("Getting a touch", ev.touches[0].clientX, ev.touches[0].clientY) | ||||
|             onPosChange(ev.touches[0].clientX, ev.touches[0].clientY); | ||||
|             ev.preventDefault(); | ||||
|         } | ||||
| 
 | ||||
|         htmlElement.ontouchstart = (ev: TouchEvent) => { | ||||
|             onPosChange(ev.touches[0].clientX, ev.touches[0].clientY); | ||||
|             ev.preventDefault(); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue