forked from MapComplete/MapComplete
Fix bugs with the opening hours picker
This commit is contained in:
parent
09b7bfb9ca
commit
4d139b45e6
4 changed files with 12 additions and 34 deletions
|
@ -202,9 +202,12 @@ export default class OpeningHoursPickerTable extends InputElement<OpeningHour> {
|
|||
ev.preventDefault();
|
||||
for (const k in ev.targetTouches) {
|
||||
const touch = ev.targetTouches[k];
|
||||
if(touch.clientX === undefined || touch.clientY === undefined){
|
||||
continue;
|
||||
}
|
||||
const elUnderTouch = document.elementFromPoint(
|
||||
touch.screenX,
|
||||
touch.screenY
|
||||
touch.clientX,
|
||||
touch.clientY
|
||||
);
|
||||
// @ts-ignore
|
||||
const f = elUnderTouch.onmouseenter;
|
||||
|
@ -217,18 +220,7 @@ export default class OpeningHoursPickerTable extends InputElement<OpeningHour> {
|
|||
|
||||
cell.ontouchend = (ev) => {
|
||||
ev.preventDefault();
|
||||
for (const k in ev.targetTouches) {
|
||||
const touch = ev.targetTouches[k];
|
||||
const elUnderTouch = document.elementFromPoint(
|
||||
touch.pageX,
|
||||
touch.pageY
|
||||
);
|
||||
// @ts-ignore
|
||||
const f = elUnderTouch.onmouseup;
|
||||
if (f) {
|
||||
f();
|
||||
}
|
||||
}
|
||||
endSelection();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -103,10 +103,10 @@ export default class Translations {
|
|||
}),
|
||||
|
||||
respectPrivacy: new T({
|
||||
en: "Please respect privacy. Do not photograph people nor license plates",
|
||||
en: "Please respect privacy. Do not photograph people nor license plates.<br/>Respect copyright. Only upload images you made yourself. Do not upload Google Streetview Images - these will be removed.",
|
||||
ca: "Respecta la privacitat. No fotografiïs gent o matrícules",
|
||||
es: "Respeta la privacidad. No fotografíes gente o matrículas",
|
||||
nl: "Respecteer privacy. Fotografeer geen mensen of nummerplaten",
|
||||
nl: "Respecteer privacy. Fotografeer geen mensen of nummerplaten.<br/>Repecteer auteursrechten. Voeg enkel foto's toe die je zelf maakte. Screenshots van andere services (zoals Google Streetview) worden verwijderd",
|
||||
fr: "Merci de respecter la vie privée. Ne publiez pas les plaques d\'immatriculation",
|
||||
gl: "Respecta a privacidade. Non fotografes xente ou matrículas",
|
||||
de: "Bitte respektieren Sie die Privatsphäre. Fotografieren Sie weder Personen noch Nummernschilder"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue