Skip to content

Add a safe zone for the drag and drop of menu items#1967

Merged
255kb merged 1 commit intomainfrom
feature/1964-drag-safe-zone
Nov 19, 2025
Merged

Add a safe zone for the drag and drop of menu items#1967
255kb merged 1 commit intomainfrom
feature/1964-drag-safe-zone

Conversation

@255kb
Copy link
Member

@255kb 255kb commented Nov 19, 2025

Closes #1964

Technical implementation details

Checklist

  • data migration added (@mockoon/commons)
  • commons lib tests added (@mockoon/commons)
  • commons-server lib tests added (@mockoon/commons-server)
  • CLI tests added (@mockoon/cli)
  • desktop UI automated tests added (@mockoon/app)

Closes #{issue_number}

Copilot AI review requested due to automatic review settings November 19, 2025 11:57
Copy link
Contributor

Copilot AI left a comment

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 adds a safe zone to the drag and drop functionality for menu items to prevent accidental dragging when users attempt to interact with the resize handle at the right edge of menus.

  • Implements a 10px safe zone on the right edge of draggable elements
  • Prevents drag initiation when the user clicks within this zone
  • Resolves conflicts between dragging menu items and resizing menu panels

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

@255kb 255kb force-pushed the feature/1964-drag-safe-zone branch from 716406d to 96cca84 Compare November 19, 2025 13:13
@255kb 255kb merged commit 90511ca into main Nov 19, 2025
15 checks passed
@255kb 255kb deleted the feature/1964-drag-safe-zone branch November 19, 2025 15:07
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.

Menu resizing can also trigger items drag and drop

2 participants