Skip to content

fix: handle scroll offset when clicking tasks in kanban board#122

Merged
bborn merged 1 commit intomainfrom
task/232-can-no-click-to-open-the-first-task-in-a
Jan 11, 2026
Merged

fix: handle scroll offset when clicking tasks in kanban board#122
bborn merged 1 commit intomainfrom
task/232-can-no-click-to-open-the-first-task-in-a

Conversation

@bborn
Copy link
Copy Markdown
Owner

@bborn bborn commented Jan 11, 2026

Summary

  • Fixed the HandleClick function in the kanban board that wasn't accounting for scroll offset when determining which task was clicked
  • This caused clicks to select the wrong task or return nil when the column was scrolled, preventing users from clicking on the first visible task

Test plan

  • Ran existing tests - all pass including TestKanbanBoard_HandleClick
  • Manual testing: Click on tasks in a scrolled kanban column to verify correct task is selected

🤖 Generated with Claude Code

The HandleClick function was not accounting for scroll offset when
determining which task was clicked. This caused clicks to select the
wrong task or return nil when the column was scrolled.

Added scroll offset handling that:
- Gets the scroll offset for the clicked column
- Adjusts click position for the scroll indicator line when present
- Converts visible task index to actual task index using scroll offset

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn merged commit a294d5d into main Jan 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant