Skip to content

fix(editor): a spotlight resizes by its handles - #52

Merged
tobi merged 1 commit into
omacom:mainfrom
jondkinney:fix/spotlight-handles
Aug 21, 2026
Merged

fix(editor): a spotlight resizes by its handles#52
tobi merged 1 commit into
omacom:mainfrom
jondkinney:fix/spotlight-handles

Conversation

@jondkinney

Copy link
Copy Markdown
Collaborator

Drag a spotlight's corner handle and you get a marquee selection instead of a resize.

The handles are drawn on the layer's bounding box, but a spotlight is hit-tested against its opening, so for the default ellipse the corner lands outside the shape, out in the dimmed surround. The press finds no layer, reads as empty canvas, and starts a marquee.

So the press asks which handle is under the pointer before it asks which layer is. That's the cheaper question anyway, since the handle belongs to a layer that's already selected, and it's the only order that works for any layer whose handles can sit outside itself. It also let me collapse two copies of the handle-tolerance test into one.

Draw a spotlight, leave it selected, drag a corner: on main the canvas dims into a marquee, here it resizes. runSpotlightHandleSmoke (exit 96) is deliberately narrow: make handles stop answering for spotlights only and every other handle test still passes.

@tobi

tobi commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Hey — #74, #51, and #71 landed on main since this stack opened. #52#68 all conflict now (mostly editor.cpp / smoke vs the stuck-modifier test and cut-out).

Can you rebase the stack onto current main? I'm not going to hand-resolve all 16. #59 and #69 I'm holding back for now.

The handles sit on a layer's bounds, but a spotlight is hit-tested
against its opening, so for the default elliptical shape the corner
handle lies outside the shape, a press there read as empty canvas, and
dragging it started a marquee instead of resizing. The press now asks
which handle is under the pointer before it asks which layer is, which
also leaves one copy of the tolerance test instead of two.
@tobi
tobi force-pushed the fix/spotlight-handles branch from 61c6476 to f654381 Compare August 21, 2026 23:08
@tobi
tobi merged commit 3eed781 into omacom:main Aug 21, 2026
1 check failed
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