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
|
@ -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