Skip to content

Conversation

@PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Dec 5, 2025

  • Fix polygon nested interaction issues when placing polygons inside existing polygons or rectangles
  • Suppress hover and context menu on non-placing tools while actively placing another tool
  • Add pointer-events: none to annotation tooltip to prevent interference

Test plan

  • Place polygon inside existing polygon - right-click removes points correctly
  • Place polygon inside rectangle - interactions work correctly
  • First polygon handles don't show when hovering while placing second polygon

@netlify
Copy link

netlify bot commented Dec 5, 2025

Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit 8fd332c
🔍 Latest deploy log https://app.netlify.com/projects/volview-dev/deploys/6932fa37ed97f800088b27dc
😎 Deploy Preview https://deploy-preview-833--volview-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Suppress hover/context menu for existing annotations when actively
  placing a new polygon or rectangle
- Add cross-tool awareness between polygon and rectangle tools
- Check getActiveWidget() in widget behaviors to defer to focused widget
- Ensure grabFocus properly sets hasFocus to maintain activeState
…ther

When placing a new polygon inside an existing one:
- Right-click to remove points now works correctly
- Old polygon handles no longer show on hover
- Tooltip doesn't appear for containing polygon after placing finishes

Key changes:
- Check getPlacing() before activeState in handleRightButtonPress
- Check if any other widget has focus before handling events
- Properly release focus when polygon finishes placing
- Hide handles on finished polygons when another is placing with points
@PaulHax PaulHax changed the title Fix probe when there is a segment group and Polygon interaction bugs Fix polygon interaction bugs Dec 5, 2025
- Prevent hover handles on existing polygons while placing new one
- Allow right-click to remove points when placing inside other annotations
- Clear stale activeState on all widgets when placing polygon loses focus
- Add hasFocus check to RulerWidget (used by RectangleWidget)
@PaulHax PaulHax added this pull request to the merge queue Dec 5, 2025
Merged via the queue into main with commit 51471bd Dec 5, 2025
7 checks passed
@PaulHax PaulHax deleted the fix-probe branch December 5, 2025 16:18
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