Skip to content

Commit

Permalink
Use coordinates of drag event for placement in absolute mode. Relates…
Browse files Browse the repository at this point in the history
  • Loading branch information
contentfree committed May 25, 2022
1 parent b2789a6 commit e948315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/Droppable.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default class Droppable {
let comp;
if (!cancelled) {
comp = wrapper.append(content)[0];
const { left, top, position } = target.getStyle();
comp.addStyle({ left, top, position });
const { position } = target.getStyle();
comp.addStyle({ left: ev.clientX, top: ev.clientY, position });
}
this.handleDragEnd(comp, dt);
target.remove();
Expand Down

0 comments on commit e948315

Please sign in to comment.