diff --git a/app.js b/app.js index 584289e..fa6a9fa 100644 --- a/app.js +++ b/app.js @@ -1562,7 +1562,7 @@ async function openNewOrderModal() {
➕ Neuer Auftrag
-
+
@@ -1613,6 +1613,16 @@ async function openNewOrderModal() { const validateCb = modal.querySelector('#no-validate'); const changeBtn = modal.querySelector('#no-change-customer'); + // Mobile: beim Fokus das aktive Feld über die Bildschirmtastatur schieben + // (Tastatur öffnet verzögert -> kleiner Timeout, bis der Viewport geschrumpft ist) + [refIn, titleIn, deliveryIn].forEach((el) => { + el.addEventListener('focus', () => { + setTimeout(() => { + try { el.scrollIntoView({ block: 'center', behavior: 'smooth' }); } catch (e) {} + }, 300); + }); + }); + let selectedCustomer = null; closeBtn.onclick = () => closeModal(modal);