If the HTML5 drag-and-drop functionality is used on a web page, it will not function properly. The ondragstart event will be executed, but events such as ondragover and ondrop will not be responsive.
It feels like after dragstart, the mouse is completely captured by webview2, but the mouse movement is actually happening within the Flutter UI window. Webview2 has no way of knowing this, and I haven't seen any forwarding or related handling of drag and drop in the C++ code.
If attempting to drag the dragDiv into the dropDiv, the action cannot be completed successfully, and the following content will be output. Additionally, dragend is immediately output after dragstart.
dragStart
dragEnd
ondragstart: The event will be triggered.
ondragover: The event will not be triggered. (NG!!)
ondrop: The event will not be triggered. (NG!!)
If the HTML5 drag-and-drop functionality is used on a web page, it will not function properly. The ondragstart event will be executed, but events such as ondragover and ondrop will not be responsive. It feels like after dragstart, the mouse is completely captured by webview2, but the mouse movement is actually happening within the Flutter UI window. Webview2 has no way of knowing this, and I haven't seen any forwarding or related handling of drag and drop in the C++ code.
Example:
If attempting to drag the dragDiv into the dropDiv, the action cannot be completed successfully, and the following content will be output. Additionally, dragend is immediately output after dragstart.
ondragstart: The event will be triggered. ondragover: The event will not be triggered. (NG!!) ondrop: The event will not be triggered. (NG!!)