-
Notifications
You must be signed in to change notification settings - Fork 267
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
Support Drag & Drop in the embedded browser preview #2030
Comments
Thank you for providing those details. I'll mark this as tracked on our backlog. However, I want to explain that when you use the embedded browser preview inside VSCode, what you're seeing is a stream of images that are generated by a headless browser. You're not interacting with the real browser viewport, only with a preview of it that supports some interactions only. We'll still track this on our backlog. But I'm unclear as to whether we'll improve the embedded browser preview to support this use case over time. For these types of use cases, I suggest connecting DevTools in VSCode to an external browser instead, as documented here: https://learn.microsoft.com/en-us/microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension/external-browser-window |
Thank you. I understand your explanation, and perhaps you could update the page you mention, so that the restriction is clearer.
BTW, I tried to alter the ‘headless’ setting, to select an external browser (per that page) but it still did not launch an external browser. It continued to launch as if the headless setting was still checked. Maybe that’s a separate bug, or maybe I need to launch MS Edge first, and then try to launch dev tools. It’s unclear from the page.
Steven
… On 20 Feb 2024, at 10:43, Patrick Brosset ***@***.***> wrote:
Thank you for providing those details. I'll mark this as tracked on our backlog. However, I want to explain that when you use the embedded browser preview inside VSCode, what you're seeing is a stream of images that are generated by a headless browser. You're not interacting with the real browser viewport, only with a preview of it that supports some interactions only.
This explains why drag/drop interactions might not work the way they work in a real browser viewport.
We'll still track this on our backlog. But I'm unclear as to whether we'll improve the embedded browser preview to support this use case over time.
For these types of use cases, I suggest connecting DevTools in VSCode to an external browser instead, as documented here: https://learn.microsoft.com/en-us/microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension/external-browser-window
—
Reply to this email directly, view it on GitHub <#2030 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOPBMEM4GRNQIXNBUOIYY63YUR46BAVCNFSM6AAAAABDPAC2GCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTHEZTOMZRGM>.
You are receiving this because you authored the thread.
|
Ah. I needed to change the setting then reload VS Code (both of which I had done before) but then use the Dev Tools tab to launch the external browser. (I had merely tried right-clicking on a file in the explorer tab, and selecting ‘Open with Edge’, which seemed to open in a VS code tab. Perhaps the external browser did open, but the window was hidden under the VS Code window.
… On 20 Feb 2024, at 10:43, Patrick Brosset ***@***.***> wrote:
Thank you for providing those details. I'll mark this as tracked on our backlog. However, I want to explain that when you use the embedded browser preview inside VSCode, what you're seeing is a stream of images that are generated by a headless browser. You're not interacting with the real browser viewport, only with a preview of it that supports some interactions only.
This explains why drag/drop interactions might not work the way they work in a real browser viewport.
We'll still track this on our backlog. But I'm unclear as to whether we'll improve the embedded browser preview to support this use case over time.
For these types of use cases, I suggest connecting DevTools in VSCode to an external browser instead, as documented here: https://learn.microsoft.com/en-us/microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension/external-browser-window
—
Reply to this email directly, view it on GitHub <#2030 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOPBMEM4GRNQIXNBUOIYY63YUR46BAVCNFSM6AAAAABDPAC2GCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTHEZTOMZRGM>.
You are receiving this because you authored the thread.
|
Thank you for your feedback. I'll open a new issue on the documentation repo to capture the fact that these restrictions should be clearly mentioned in the docs. |
Environment (please complete the following information):
Describe the bug:
Whilst HTML drag & drop within an Edge Devtools tab works, there is no visual feedback: no drag image and no drop effect cursor change.
Running the exact same file URL in a normal Edge window provides the expected feedback.
Repro steps:
Create the following, minimal demo file as index.html in a new VS Code project. Use Edge Devtools to open in a browser tab. Attempt to drag the first div onto the second.
Expected behavior:
You should see the text of the source div as a 'ghost' drag image while dragging it. When the cursor is over the target div, it should change to show a 'copy' action feedback.
Additional context:
I have also tried with an image element as the source: same absence of visual feedback.
I have tried adding a drag image explicitly (setDragImage) but that also fails to give any visual feedback.
Opening the exact same URL in a normal Edge window/tab gives normal (expected) feedback.
AB#49074458
The text was updated successfully, but these errors were encountered: