A way to disable animation of cancelled drag for editor apps like VS Code #10039
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
What problem are you trying to solve?
For editor apps it is commonly supported to drag a tab out of current window to make the tab become a new window. For example in VS Code:
However implementing this with web tech has a pitfall that, since the "tab" in editor is not supposed to transfer any data into the app under the cursor when releasing mouse, the drag operation is essentially cancelled when mouse is released, which would create an animation on macOS indicating the drag is cancelled.
In the below screencast, please notice the animation that the tab getting bounced back to original window after releasing mouse, which makes user feel that the drag is cancelled but it is actually not:
cancel-animation.mov
You don't see this animation when actually using VS Code because we have been working around it by patching Chromium in the build of Electron used by VS Code.
What solutions exist today?
Currently the only way to solve it is to patch the browser engine, or to implement drag and drop using pure native implementation.
The patch used by VS Code is:
How would you solve it?
We propose adding a new property to
DataTransfer
to control whether the "cancelled drag" animation should be enabled.I am willing to implement this feature in Chromium browser if it gets passed in WHATWG.
Anything else?
Related VS Code issue microsoft/vscode#199635.
/cc VS Code developers @bpasero @deepak1556
The text was updated successfully, but these errors were encountered: