This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Added drag-n-drop re-ordering of images within gallery cards (#1073)
no issue - first pass at implementation of drag-and-drop re-ordering of images within a gallery - adds a `koenig-drag-drop-handler` service that allows consumers (editor and cards) to hook into drag and drop behaviour without interfering with each other and allows for future possibilities such as dragging images between galleries or into/out of galleries
- Loading branch information
1 parent
61ffb51
commit cd99ded
Showing
7 changed files
with
925 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const CONTAINER_DATA_ATTR = 'koenigDndContainer'; | ||
export const DRAGGABLE_DATA_ATTR = 'koenigDndDraggable'; | ||
export const DROPPABLE_DATA_ATTR = 'koenigDndDroppable'; | ||
export const DROP_INDICATOR_ID = 'koenig-drag-drop-indicator'; | ||
export const DROP_INDICATOR_ZINDEX = 10000; | ||
export const GHOST_ZINDEX = DROP_INDICATOR_ZINDEX + 1; |
Oops, something went wrong.