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

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