Skip to content

Commit 1aca961

Browse files
Ensure onDragMove is called for every move update.
To do this, ensure that the relevant properties of the transform are accessed to set up the effect reactivity correctly. Before, only the top level transform object was accessed, but that is unchanging on move.
1 parent b5246c8 commit 1aca961

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## [Unreleased]
4+
5+
### Fixed
6+
7+
- Ensure `onDragMove` is called for every move update (rather than just once).
8+
To do this, ensure that the relevant properties of the transform are accessed
9+
to set up the effect reactivity correctly. Before, only the top level
10+
transform object was accessed, but that is unchanging on move.
11+
312
## [0.6.0] - 2022-05-01
413

514
### Added

src/drag-drop-context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ const DragDropProvider: Component<DragDropContextProps> = (passedProps) => {
509509
createEffect(() => {
510510
const draggable = activeDraggable();
511511
if (draggable) {
512-
draggable.transform;
512+
Object.values(draggable.transform);
513513
untrack(() => handler({ draggable }));
514514
}
515515
});

0 commit comments

Comments
 (0)