Skip to content

Make inspector buttons respond to clicks - #20

Merged
phalladar merged 2 commits into
phalladar:mainfrom
horus-leonardo:fix/inspector-button-clicks
Nov 6, 2026
Merged

phalladar merged 2 commits into
phalladar:mainfrom
horus-leonardo:fix/inspector-button-clicks

Conversation

@horus-leonardo

@horus-leonardo horus-leonardo commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer update: Verified on macOS 27 by clicking every 3 pt down the inspector with synthesized mouse events. With the ScrollView, builds that record SDK 15 (local SwiftPM builds) never fire either button. The same code stamped as SDK 26 or 27, the way CI builds releases, works, so release downloads weren't affected. This List version works in both. It does change the layout a little: the List's 8 pt row inset narrowed the side margins (restored in 1c963ec with 8 pt of horizontal padding), and the size values now sit at the right edge.


Seen on macOS 27.0 with a local build (SDK 15.0). It may not reproduce on other macOS versions or with the CI build (SDK 26). The change is harmless where the bug doesn't occur.

Inside the inspector, the SwiftUI ScrollView drew its content below the toolbar but hit-tested it without that offset. A click landed about a toolbar's height above what was drawn, so Reveal in Finder and Copy Path never fired. Clicking roughly 50 pt above a button did trigger it. Swapping the ScrollView for a plain List with hidden separators and background fixes it without visible changes.

Validation

  • Tested by hand on macOS 27.0 with a local build (SDK 15.0). Both buttons respond where they are drawn. Not checked on macOS 15/26 or with the CI build.
  • swift build and swift test pass.

🤖 Generated with Claude Code

Inside the inspector, a SwiftUI ScrollView draws its content below the
toolbar but hit-tests it without that offset, so a click landed about a
toolbar's height above what was drawn and Reveal in Finder and Copy Path
never fired. A List hit-tests its rows where they are drawn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@horus-leonardo
horus-leonardo force-pushed the fix/inspector-button-clicks branch from 1ee4582 to eae0656 Compare November 3, 2026 20:45
A List insets its rows by 8 pt, so the panel's side margins dropped from
16 pt to 8 pt. Add 8 pt of horizontal padding to restore them.

The click bug only occurs on macOS 27 in builds that record SDK 15 (local
SwiftPM builds). Builds stamped as SDK 26 or 27, like CI's, handle clicks
with the ScrollView too, so say that in the comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@phalladar
phalladar merged commit 8396594 into phalladar:main Nov 6, 2026
@phalladar

Copy link
Copy Markdown
Owner

Thanks @horus-leonardo, merged! I confirmed the bug and pushed one small follow-up commit (1c963ec) on top of yours before merging:

  • Margins: a List insets its rows by 8 pt, so the panel's side margins had dropped from 16 pt to 8 pt. Adding 8 pt of horizontal padding restores them.
  • Comment: it now says the bug only happens on macOS 27 in builds that record SDK 15.

What I found while verifying, on macOS 27 with synthesized clicks every 3 pt down the inspector:

  • With the ScrollView, builds that record SDK 15 (local SwiftPM builds) never fire either button.
  • The same code stamped as SDK 26 or 27, the way CI builds releases, works. So release downloads weren't affected, but anyone building from source on macOS 27 was.
  • Your List version works in both.

I also added a short note with these results to the top of the description. Your commit went in as-is, so it's credited to you. Thanks for tracking this down!

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.

2 participants