Skip to content

Commit

Permalink
Fixed: DnD: Level shift start coordinate
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Feb 2, 2023
1 parent 590363e commit 943048e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/drag-and-drop.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,10 @@ export function onDragEnter(e: DragEvent): void {

// Native
else {
const panel = Sidebar.reactive.panelsById[Sidebar.reactive.activePanelId]
const leftOffset = panel?.leftOffset ?? 0
DnD.start({
x: Sidebar.width >> 1,
x: (Sidebar.width >> 1) + leftOffset,
y: e.clientX,
type: DragType.Native,
panelId: NOID,
Expand Down

0 comments on commit 943048e

Please sign in to comment.