Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: Pen taps on sidebar rows start a drag and lose their click

Aperta Adatta ai principianti
#26,548 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@makhnatkin ci sta già lavorando.

Dal 28/10/2026.

  • #26549 di @makhnatkin — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia leggendo come il sensore registra pointerdown e quando passa alla modalità di trascinamento e installa il soppressore di clic. La soglia si trova in SIDEBAR_DRAG_DISTANCE ed è applicata da SidebarPointerSensor in apps/web/src/components/Sidebar.pointer.ts, collegato in apps/web/src/components/Sidebar.tsx. È completato quando un tocco con la penna con uno scorrimento di pochi pixel attiva ancora il onClick della riga e il comportamento del trascinamento con il mouse, insieme ai pulsanti di fissaggio, rimozione del fissaggio e risveglio, resta corretto. Verificalo con test degli eventi del puntatore che impostano pointerType su pen.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

AI-generated
"Generated" means mostly the model, "Edited" means mostly me.

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/web

Steps to reproduce
  1. On macOS, use a Wacom pen in pen (absolute) mode. Mine: Intuos S (CTL-4100WL) with Wacom Pen 4K; its 152 × 95 mm active area maps to a 1920 × 1080 pt display.
  2. Tap thread rows in the sidebar with the pen tip, 10–20 times.
Expected behavior

Every tap opens the thread.

Actual behavior

Some taps do nothing.

SidebarPointerSensor starts a row drag once the pointer moves more than SIDEBAR_DRAG_DISTANCE (6 px) from pointerdown, for every pointer type (Sidebar.tsx#L854, Sidebar.pointer.ts#L72-L82). Once dragging, it installs a document-capture click suppressor, so the row's onClick never runs.

On this tablet 6 px is about 0.5 mm of tip travel (152 mm / 1920 pt × 6). A pen tip slides that far during an ordinary tap; a mouse stays still while clicking. Chromium itself allows 20 px for a stylus click by default and 10 px on ChromeOS (gesture_configuration.h, gesture_configuration_aura.cc).

The same sensor backs the settle, un-settle and wake sweep buttons, so pen taps on them are affected too.

Impact

Minor bug or occasional failure

Version or commit

T3 Code (Beta) 0.1.3; the code above is unchanged on main @ 5211acfe95.

Environment

macOS 26.6.2, Electron 44.9.3, Wacom driver 6.4.6-3

Logs or stack traces

No response

Screenshots, recordings, or supporting files

No response

Workaround

Press without sliding the tip, then pause longer than the double-click interval before a retry: quicker retries arrive with detail > 1 and are skipped (#22058).

Related: #22058 (same symptom, other causes), #25442 (zero-button move before pointerup).

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
2h 54m
PR unite (30g)
350

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pingdotgg/t3code

Tutte le issue di pingdotgg/t3code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.