Skip to content

Pointing-hand cursor over task completion circles - #7

Closed
crazytan wants to merge 1 commit into
mainfrom
worktree-pointing-hand-cursor
Closed

Pointing-hand cursor over task completion circles#7
crazytan wants to merge 1 commit into
mainfrom
worktree-pointing-hand-cursor

Conversation

@crazytan

Copy link
Copy Markdown
Owner

What

The mouse cursor now turns into a pointing hand when it's over the circular completion button — both in the task list rows and in the task edit screen.

How

AppKit makes this straightforward. TaskMenuActionButton already had tracking-area plumbing for hover, so this adds:

  • An opt-in usesPointingHandCursor flag.
  • .cursorUpdate added to the tracking-area options when the flag is set (.inVisibleRect keeps it correct while the list scrolls).
  • A cursorUpdate(with:) override that calls NSCursor.pointingHand.set() (skipped when the button is disabled), plus an arrow reset on mouseExited so the hand never lingers.

Left off by default, so no other icon button changes behavior.

Testing

  • xcodebuild build succeeds.
  • New TaskMenuTests/TaskMenuActionButtonTests (4 tests, passing): default is opt-out, enabling installs a .cursorUpdate tracking area, cursorUpdate sets the pointing hand when enabled and leaves the cursor alone when not.
  • Live on-screen cursor verification was cut short — it required warping the real mouse pointer, and you were actively using the machine.

Add an opt-in usesPointingHandCursor flag to TaskMenuActionButton that
installs a .cursorUpdate tracking area and sets NSCursor.pointingHand
while the mouse is over the button, and enable it on the completion
circle in the task list rows and the task edit screen.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying taskmenu with  Cloudflare Pages  Cloudflare Pages

Latest commit: 89b98c7
Status: ✅  Deploy successful!
Preview URL: https://afdcfa50.taskmenu.pages.dev
Branch Preview URL: https://worktree-pointing-hand-curso.taskmenu.pages.dev

View logs

@crazytan crazytan closed this Jul 26, 2026
@crazytan
crazytan deleted the worktree-pointing-hand-cursor branch July 26, 2026 03:15
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