Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: tab dragging functionality #34

Merged
merged 1 commit into from
Jul 9, 2023
Merged

Conversation

ebfood
Copy link
Contributor

@ebfood ebfood commented Jul 9, 2023

This change resolves #7

To add drag functionality . I exposed two more properties:
draggable means that it is possible to drag tab.
onTabDragged will change the tab states when drag is success. (onTabChanged already exists)

Furthermore, taking inspiration from the interaction in VSCode, I have implemented the following two details:

  • Select the current tab when dragging starts.
  • Change the background color of the target position during dragging.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@invisal
Copy link
Collaborator

invisal commented Jul 9, 2023

Fantastic. You are life-saving :)

Copy link
Collaborator

@invisal invisal left a comment

Choose a reason for hiding this comment

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

Great work.

@invisal invisal merged commit 2a6eaca into querymx:main Jul 9, 2023
@ebfood ebfood deleted the tab-drag branch July 9, 2023 14:03
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.

Tab should be draggable
2 participants