Tweaks to icons, add direction to benches, tweak to direction input

This commit is contained in:
Pieter Vander Vennet 2020-11-15 19:17:36 +01:00
parent c1490267e6
commit 8e5e249e6b
7 changed files with 103 additions and 41 deletions

View file

@ -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;" +

View file

@ -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();
}