HTML Drag and Drop API Example
This example should demonstrate whether the HTML Drag and Drop API works correctly.
Expected Behaviour
When dragging the "draggable", in the console should be printed:
- "dragstart" once
- "drag" many times
- "dragend" once
When dragging the "draggable" on the drop target, the inner text of the latter shoud change and in the console should be printed:
- "dragstart" once
- "drag" many times
- "dragenter" once
- "dragover" many times (alternating with "drag")
-
- "drop" once (in case of a drop inside the drop target)
- "dragleave" once (in case the draggable div leaves the drop target)
- "dragend" once
Running the example
To run the example, simply run the following command:
go run main.go
Building the example
To build the example in debug mode, simply run the following command:
wails3 task build
Status
Platform |
Status |
Mac |
Working |
Windows |
Not Working |
Linux |
|