Skip to content

Fix resize handle drag behavior#179

Merged
pascalpp merged 3 commits into
codex/173-resize-handlefrom
codex/177-resize-handle-drag
Jun 11, 2026
Merged

Fix resize handle drag behavior#179
pascalpp merged 3 commits into
codex/173-resize-handlefrom
codex/177-resize-handle-drag

Conversation

@pascalpp

@pascalpp pascalpp commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Closes #177

Summary

  • route resize-handle dragging through explicit frame resizing instead of window background dragging
  • preserve grouped child window frames while handle resize is active
  • add core tests for resize frame math, background dragging suppression, and fixed top/left edges during horizontal handle drags

Tests

  • xcodebuild -project "Free Ruler.xcodeproj" -scheme "Free Ruler" test

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts ruler resize-handle dragging to resize the window frame directly (instead of relying on background dragging), while keeping grouped/child window frames stable during the drag, and adds unit tests to validate the resize math and interaction behavior.

Changes:

  • Implement explicit resize-drag handling in ResizeHandleView (track mouse down/drag/up, compute new window frame, suppress background dragging, preserve child window frames during drag).
  • Add core tests covering resize frame math (clamping + fixed edges) and background dragging suppression.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
FreeRulerTests/RulerCoreTests.swift Adds tests for resize frame math and for disabling/restoring background dragging during resize-handle drags.
Free Ruler/ResizeHandleView.swift Implements resize-handle-driven window resizing, cursor handling, accessibility identifiers, and child-window frame preservation during drags.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Free Ruler/ResizeHandleView.swift

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread Free Ruler/ResizeHandleView.swift
@pascalpp pascalpp force-pushed the codex/173-resize-handle branch from 867970e to 7f53bfd Compare June 11, 2026 05:18
@pascalpp pascalpp force-pushed the codex/177-resize-handle-drag branch from 53573bf to 7ae1360 Compare June 11, 2026 05:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@pascalpp pascalpp merged commit 65a1799 into codex/173-resize-handle Jun 11, 2026
1 check passed
@pascalpp pascalpp deleted the codex/177-resize-handle-drag branch June 11, 2026 05:40
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