Fix: Long-Press auf FAB 350ms statt 600ms + iOS-Textauswahl unterdrücken, SW by-v1094

User-Feedback: 600ms Long-Press triggert iOS-Textauswahl.

- Trigger-Dauer von 600ms auf 350ms verkürzt — feuert vor iOS-
  Auswahl-Callout (typisch ~500ms)
- Am #worlds-fab user-select:none, -webkit-user-select:none,
  -webkit-touch-callout:none — verhindert dass iOS bei Press ein
  Lupensymbol/Auswahl-Menü öffnet
This commit is contained in:
rene 2026-05-26 19:18:38 +02:00
parent 61af803d99
commit 6224044654
5 changed files with 17 additions and 12 deletions

View file

@ -260,12 +260,17 @@ window.OfflineIndicator = (() => {
if (!fab || fab.dataset.lpBound) return;
fab.dataset.lpBound = '1';
// iOS: Long-Press würde sonst Textauswahl/Callout-Menü triggern
fab.style.webkitUserSelect = 'none';
fab.style.userSelect = 'none';
fab.style.webkitTouchCallout = 'none';
let timer = null;
let fired = false;
const start = () => {
fired = false;
clearTimeout(timer);
timer = setTimeout(() => { fired = true; openStatus(); }, 600);
timer = setTimeout(() => { fired = true; openStatus(); }, 350);
};
const cancel = () => clearTimeout(timer);
fab.addEventListener('touchstart', start, { passive: true });