ir4y / elm-dnd Goto Github PK
View Code? Open in Web Editor NEWBuild great UI with drag-and-drop simple
Home Page: http://package.elm-lang.org/packages/ir4y/elm-dnd/latest
License: MIT License
Build great UI with drag-and-drop simple
Home Page: http://package.elm-lang.org/packages/ir4y/elm-dnd/latest
License: MIT License
Hey @ir4y
when testing out the lib I created two ellies:
List Sorting (including some modifications in order to make it look a bit more like a list): https://ellie-app.com/bbmzpJtgNTYa1
Table (unmodified): https://ellie-app.com/bbmBK5w3ZLLa1
In case you want to add those links somewhere, otherwise maybe people will still find it through this issue.
Cheers and thanks for your lib :)
As far as I can tell the library doesn't work in IE (11, presumably older). I tracked it down to DragStart
msg not being sent. I looked into it and the only reasonable place where it could happen is if the mousedown
event isn't properly decoded (which fails silently in Elm). I'm on Elm 0.18 so the library delegates this work to Mouse.position
still. I see, that the 0.19 version has internalized the decoding but it's still treating pageX
and pageY
as integers which will fail in IE (as in described elm-lang/mouse#6).
I haven't put together an example for Elm 0.19 so my first question is has anyone encountered the same behaviour?
If yes, I think the solution would be to simply decode the two attributes as floats. Apart from draggedStyle
, it's not used anywhere else so the change shouldn't affect public API.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.