Skip to content

Commit

Permalink
Disable dragging to column center, enable sides only
Browse files Browse the repository at this point in the history
  • Loading branch information
apedroferreira committed Jun 8, 2022
1 parent a56ff9e commit 066cf6c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,10 @@ export default function RenderPanel({ className }: RenderPanelProps) {
const activeDropNodeRect = activeDropNodeInfo.rect;

const isDraggingOverPage = appDom.isPage(activeDropNode);

const isDraggingOverContainer = hasContainerComponent(activeDropNodeInfo);
const isDraggingOverRow = appDom.isElement(activeDropNode) && isPageRow(activeDropNode);

let centerAreaFraction = 0;
if (isDraggingOverContainer || isDraggingOverPage) {
if (isDraggingOverPage || isDraggingOverRow) {
centerAreaFraction = 1;
}

Expand Down

0 comments on commit 066cf6c

Please sign in to comment.