Skip to content

Add mouse scroll wheel support to all canvases#7

Open
joeynyc wants to merge 1 commit intodvdsgl:mainfrom
joeynyc:feat/scroll-wheel-support
Open

Add mouse scroll wheel support to all canvases#7
joeynyc wants to merge 1 commit intodvdsgl:mainfrom
joeynyc:feat/scroll-wheel-support

Conversation

@joeynyc
Copy link

@joeynyc joeynyc commented Jan 10, 2026

Summary

Adds mouse scroll wheel support to all canvas types for natural, intuitive navigation.

Changes

  • Extended use-mouse.ts to detect scroll wheel events
  • Added scroll handlers to all 4 canvas types
  • 55 unit and integration tests (109 assertions)
  • Updated help text across all canvases

Scroll Behavior

  • Document: 3 lines per scroll
  • Calendar: Week navigation
  • Flight: Flight/seatmap navigation (respects focus)
  • Meeting Picker: Slot navigation, Shift+scroll for weeks

Testing

bun test canvas/src/canvases/

🤖 Generated with Claude Code

- Extend useMouse hook to detect scroll wheel events (SGR format)
- Add scroll handler to document canvas (3 lines per tick)
- Add scroll handler to calendar canvas (week navigation)
- Add scroll handler to flight canvas (respects focus mode)
- Add scroll handler to meeting picker (slots + Shift for weeks)
- Update help text across all canvases to indicate scroll support
- Add comprehensive unit and integration tests (55 tests, 109 assertions)

Scroll behavior:
- Document: Scroll moves content 3 lines at a time
- Calendar: Scroll navigates weeks (7 days forward/back)
- Flight: Scroll selects flights or moves seatmap cursor (respects focus)
- Meeting Picker: Scroll moves time slots, Shift+scroll navigates weeks

Edge cases handled:
- Boundary clamping (top/bottom, first/last)
- Countdown blocking (flight and meeting picker)
- Read-only mode support (document canvas)
- Focus mode awareness (flight canvas)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@joeynyc
Copy link
Author

joeynyc commented Jan 10, 2026

Hey man! Just some quality of life add ons.

paulrobello added a commit to paulrobello/claude-canvas that referenced this pull request Jan 13, 2026
Documents all functionality added from merged PRs:
- 17 canvas types (14 new from PR dvdsgl#9 + 3 original)
- Mouse scroll wheel support (PR dvdsgl#7)
- Windows support with Windows Terminal (PR dvdsgl#8)
- Calendar CRUD with local storage (PR dvdsgl#8)
- Terminal Vision capture feature (issue dvdsgl#5)
- Shared component library (Charts, Forms, Layout)
- Full CLI command reference
- Canvas examples and keyboard shortcuts
- IPC protocol documentation
- Project structure overview
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