Skip to content

Commit

Permalink
Fix bug in movable action
Browse files Browse the repository at this point in the history
  • Loading branch information
regexident authored Aug 5, 2024
1 parent e6be4e8 commit d145a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte-ux/src/lib/actions/mouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const movable: Action<HTMLElement, MovableOptions | undefined> = (node, o
if ((xEnabled && dx) || (yEnabled && dy)) {
node.dispatchEvent(
new CustomEvent('move', {
detail: { x: lastX, y: lastX, dx: xEnabled ? dx : 0, dy: yEnabled ? dy : 0 },
detail: { x: lastX, y: lastY, dx: xEnabled ? dx : 0, dy: yEnabled ? dy : 0 },
})
);
} else {
Expand Down

0 comments on commit d145a56

Please sign in to comment.