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

Drag and Drop for Global Awareness #92299

Merged
merged 17 commits into from
Mar 18, 2020
Merged

Conversation

sbatten
Copy link
Member

@sbatten sbatten commented Mar 9, 2020

Drafting out what it should look like and testing its application

I think the observer should support registering participants (elements that can be dragged and register a set of callbacks) and listeners (just a set of callbacks for listening to global drag start and end).

Participants may need to listen to both their drag start event and others', should they be separate callbacks or should the participant handle checking?

We can also probably group the view id and type logic into the observer so it is responsible for populating and unpopulating the LocalTransferData

@sbatten sbatten self-assigned this Mar 9, 2020
@sbatten sbatten requested review from sandy081 and isidorn March 17, 2020 19:26
@sbatten sbatten added this to the March 2020 milestone Mar 17, 2020
@sbatten sbatten marked this pull request as ready for review March 17, 2020 19:27
margin-bottom: -3px;
}

/* .monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.insertAfter {
Copy link
Member Author

Choose a reason for hiding this comment

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

remove commented code

opacity: 0;
top: 0;
pointer-events: none;
/* z-index: 1; */
Copy link
Member Author

Choose a reason for hiding this comment

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

remove commented code


CompositeDragAndDropObserver.INSTANCE.registerTarget(this.element, {
onDragStart: e => {
// this.element.style.outline = `1px solid`;
Copy link
Member Author

Choose a reason for hiding this comment

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

remove commented code

Copy link
Member

@sandy081 sandy081 left a comment

Choose a reason for hiding this comment

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

Did a brief look and overall the code structure makes sense to me.

@sbatten sbatten merged commit a6b1c77 into microsoft:master Mar 18, 2020
@sbatten sbatten deleted the betterDragNDrop branch March 18, 2020 14:56
@github-actions github-actions bot locked and limited conversation to collaborators May 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants