forked from MapComplete/MapComplete
Huge refactoring of state and initial UI setup
This commit is contained in:
parent
4e43673de5
commit
eff6b5bfad
37 changed files with 5232 additions and 4907 deletions
13
Utils.ts
13
Utils.ts
|
@ -463,5 +463,18 @@ export class Utils {
|
|||
}
|
||||
return hours+":"+Utils.TwoDigits(minutes)+":"+Utils.TwoDigits(seconds)
|
||||
}
|
||||
|
||||
public static DisableLongPresses(){
|
||||
// Remove all context event listeners on mobile to prevent long presses
|
||||
window.addEventListener('contextmenu', (e) => { // Not compatible with IE < 9
|
||||
|
||||
if (e.target["nodeName"] === "INPUT") {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}, false);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue