[BUG] Colonist top roster card flickers (name wrapping) and unreliable click selection #26
Labels
No labels
agent/claude
agent/gemini
agent/kimi
area/assets
area/client
area/server
area/sim-core
priority/high
priority/low
priority/medium
status/blocked
status/needs-review
type/bug
type/chore
type/docs
type/feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
game-dev/RicosWorld#26
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug Description
Expected Behavior
Reported by @johnw.
PR #25 includes the complete fix for this issue:
enderColonistRoster() was converted from blowing away the DOM (ar.innerHTML = '') every tick to an in-place patch model, and click handling was moved to an event delegation listener on #colonist-roster-bar using closest('.colonist-pill'). Clicks are now 100% reliable and never get interrupted or dropped by tick updates.
Linked PR: #25