forked from MapComplete/MapComplete
Fix touch direction input
This commit is contained in:
parent
4737a6f56c
commit
e2881840da
2 changed files with 10 additions and 2 deletions
|
@ -62,7 +62,9 @@ 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();
|
||||
}
|
||||
|
||||
let isDown = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue