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

Markdown document: Dragging tab to split editor doesn't work #32654

Closed
jansensan opened this issue Aug 16, 2017 · 6 comments
Closed

Markdown document: Dragging tab to split editor doesn't work #32654

jansensan opened this issue Aug 16, 2017 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) help wanted Issues identified as good community contribution opportunities webview Webview issues workbench-dnd Drag-and-drop issues workbench-electron Electron-VS Code issues

Comments

@jansensan
Copy link

  • VSCode Version: 1.15.0 8b95971
  • OS Version: 10.10.5 (14F2511)

Steps to Reproduce:

  1. Open a markdown document
  2. Right-click on the document in the Explorer column and choose "Open Preview"
  3. Try to drag the tab of the previewed document to the right or left of the editor to split the editor view (like with any other type of document)
  4. No luck

Notes:

  • If you press on the "Split Editor" button at the top right, the preview tab will then duplicate to create a split editor.
  • If you drag the markdown file tab (not the preview tab), the split editor functionality will work as expected.
@vscodebot vscodebot bot added markdown Markdown support issues new release labels Aug 16, 2017
@bpasero
Copy link
Member

bpasero commented Aug 17, 2017

I cannot reproduce, is this what you are doing?

flicker_chrome58

@bpasero bpasero added the info-needed Issue requires more information from poster label Aug 17, 2017
@bpasero bpasero added this to the Backlog milestone Aug 17, 2017
@jansensan
Copy link
Author

@bpasero You are starting from an already split editor. See the screencap below. When I try to drag the preview tab, the editor cannot be split, but when I drag the *.md tab, then it does.

vscode-issue

It's by no means a blocker, but it doesn't behave like other tabs do in this context.

@bpasero
Copy link
Member

bpasero commented Aug 18, 2017

Yeah I can reproduce now. It does not always seem to happen though, after a while of dragging I can get the drop feedback to show up. This is probably an issue with the webview container we use for the markdown preview.

Btw the same bug happens when you try to drag a file from the explorer over to the editor area over a markdown preview.

I think the only fix would be to overlay the editor area with a hidden div that takes all the drop events so that this becomes independent from the underlying editor.

Open for help here if the change is not too crazy.

@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug workbench help wanted Issues identified as good community contribution opportunities and removed info-needed Issue requires more information from poster new release markdown Markdown support issues labels Aug 18, 2017
@bpasero bpasero added workbench-dnd Drag-and-drop issues and removed help wanted Issues identified as good community contribution opportunities workbench labels Nov 15, 2017
@bpasero bpasero removed this from the Backlog milestone Nov 15, 2017
@bpasero
Copy link
Member

bpasero commented Nov 22, 2017

Update
Figured out that the explanation is quite simple: When dragging over the contents of the webview we never receive the dragenter event because the webview just absorbs all eventing. If 2 editors are opened side by side, you can get the DND working by accident when moving the mouse over the scrollbar which seems to be outside of the webview.

If someone has ideas how to get this right, feel free to jump in if the change is not too large.

@bpasero bpasero added help wanted Issues identified as good community contribution opportunities webview Webview issues workbench-electron Electron-VS Code issues labels Nov 22, 2017
@bpasero
Copy link
Member

bpasero commented Dec 19, 2017

/duplicate #25856

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 19, 2017
@vscodebot
Copy link

vscodebot bot commented Dec 19, 2017

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Dec 19, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) help wanted Issues identified as good community contribution opportunities webview Webview issues workbench-dnd Drag-and-drop issues workbench-electron Electron-VS Code issues
Projects
None yet
Development

No branches or pull requests

2 participants