You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an image is dragged from the file system (Windows, Desktop Explorer) to web (Flutter with CanvasKit), the DropTarget does not trigger and the image is opened in a new tab.
Tested in Chrome and Firefox (most recent update).
The text was updated successfully, but these errors were encountered:
In Windows, while debugging on Chrome, the behaviour is the expected one. On the release version (Flutter with CanvasKIT) accessed through a server, the browser (Chrome and Opera GX) blocks the behaviour so the dropped files are simply downloaded or opened (if the browser can open them).
You can solve this by disabling the default behaviour from the browsers. I did this by adding this lines on web/index.html, inside the tag.
When an image is dragged from the file system (Windows, Desktop Explorer) to web (Flutter with CanvasKit), the
DropTarget
does not trigger and the image is opened in a new tab.Tested in Chrome and Firefox (most recent update).
The text was updated successfully, but these errors were encountered: