Repository navigation
mac: fix the drawn cursor stuck on a stale shape after zoom-in - #559
Merged
Merged
Conversation
ClearCursor.start took the current system cursor as the drawn shape but kept the pixel key from the last session. When the pointer sat on text at zoom-in (I-beam) and the last session ended on an arrow, the next arrow read matched that old key, counted as a repeat, and the I-beam stayed until zoom-out. start now clears the key with the new shape. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SkyGaTQ1FTFz3Zwo4nohwd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Zoomed with the draw engine, Wind's drawn cursor sometimes stayed an I-beam over non-text areas until zoom-out (owner, 2026-11-07).
Cause (from verbose logs of a caught case)
ClearCursor.startsetappCursorto that I-beam but keptappKey(pixel key) from the previous session, an arrow.appKey, counted as repeats, soappCursorstayed the I-beam.Fix
startclearsappKeytogether with the newappCursor(asownSetalready does).Checks
swift run wind-checks: all pass.scripts/e2e_draw.py: 74 of 75 pass; the failure is the Inspect crosshair speed at 1x (93.6 vs 78.0), unrelated to cursor shape.scripts/e2e_hover.pycould not run here: no notification banner could be posted.🤖 Generated with Claude Code
https://claude.ai/code/session_01SkyGaTQ1FTFz3Zwo4nohwd