All notable changes to this project will be documented in this file.
6.0.1 - 2020-05-27
- Fix broken ghost coordinates when scrolling, see: #50
6.0.0 - 2020-03-08
- Add
startPosition
field toInfo
in theDnDList
module only. - Add
currentPosition
field toInfo
in theDnDList
module only.
- Use fixed
position
instead of absolute inghostStyles
in both modules.
5.0.0 - 2019-05-06
- Transfer groupable items between different groups using only list items as drop elements.
- List state invariant:
- the list is gathered by the grouping property
- if there are auxiliary items, they are keep their header or footer places
- Add new module
DnDList.Groups
.
- Introduce
Info
type alias with a lot of useful fields. - Add
info
field toSystem
. - Move
dragIndex
field fromSystem
toInfo
as a field calleddragIndex
.
- Add
beforeUpdate
field toConfig
. - Add
listen
field toConfig
. - Add
operation
field toConfig
.
- Move
message
field fromConfig
tocreate
function as a newMsg
argument.
- Rename
Draggable
type toModel
. - Rename
draggable
field tomodel
inSystem
.
4.0.2 - 2019-03-07
- Instead of
Int
useFloat
when extracting mouse position. - Delete
preventDefault
frommouseover
because it has no default action.
4.0.1 - 2019-02-21
- Update README, documentation, and examples for better understanding.
4.0.0 - 2019-02-19
- Rename
draggedIndex
field todragIndex
inSystem
.
3.0.0 - 2019-02-18
- Add
item
type variable toSystem
. - Move
DnDList.update
function intoSystem
as a new field calledupdate
. - Move
DnDList.getDragIndex
function intoSystem
as a new field calleddraggedIndex
.
- Rename
events
field tomessage
inConfig
.
2.0.0 - 2019-02-17
- Introduce
Config
type alias. - Replace
Msg
argument withConfig Msg
increate
function. - Add the removed
Msg
fromcreate
toConfig
as a field calledevents
. - Move
Movement
argument fromdraggedStyles
toConfig
as a field calledmovement
.
1.0.4 - 2019-02-17
- Add example using
mdgriffith/elm-ui
.
1.0.3 - 2019-02-14
- Update README, documentation, and examples for better understanding.
1.0.2 - 2019-02-12
- The ghost element's position was animated by setting the left and top properties which trigger layout operations, and that's expensive. The better solution is to use a translate on the element, which does not trigger layout.
1.0.1 - 2019-02-08
- No changes, just check how the Elm package system works.
1.0.0 - 2019-02-08
- Move items in flat lists.
- List state invariant: none
- Add module called
DnDList
.