-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
use drag and drop html api #97
Comments
Pretty sure it's a bad idea, but feel free to try |
see also |
This doesn't work by the way if the Windows Classic theme is enabled, although it seems smoother with html api. Also it might be possible to check if the classic theme is enabled and fall back to the default dragging method: |
So whether or not native drag/drop will work, depends on multiple factors (not for Windows Classic, not for X11 (maybe only i3), ...) that are impossible(?) to detect. So it does not seem feasible for now, even as progressive enhancement. |
@niklasf where did you get the info that it doesn't work for X11? It usually works for me quite fine. It'll require edge 18+, but other than that, it doesn't break much else from a glance in the caniuse website.
|
Note that the previous comment is more than 3 years old. |
I somehow acknowledged this and yet failed to realize that "hey maybe this implies they don't remember where they got it from". In that case, it seems that now there's not really much compatibility against the drag and drop API. It should be ready to use :+!: |
I do remember that I just tried some demo myself back then. Trying another random demo today, I don't see the same problem. |
there's some snippets here: master...isaacl:chessground:dragDrop of an attempt I tried a couple years ago. Even with full support, browsers centered the hover icon differently, and I was forced to use different behavior for different browsers. But I still recon it's doable. |
Drag and Drop api is pretty well supported. It would allow dragged pieces to track more closely to mouse pointer, making for smoother piece movement.
https://caniuse.com/#search=draganddrop
cc @niklasf
The text was updated successfully, but these errors were encountered: