Skip to content
Snippets Groups Projects
Commit 4e28700a authored by rhenck's avatar rhenck
Browse files

[editor] Keep other canvas elements from moving when dragging

This was caused by an internal sorting mechanism of the drag and drop 
module.
parent 76b06912
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,8 @@ import { CanvasDragOverlayComponent } from './canvas-drag-overlay.component'; ...@@ -37,7 +37,8 @@ import { CanvasDragOverlayComponent } from './canvas-drag-overlay.component';
*ngFor="let section of page.sections; let i = index" *ngFor="let section of page.sections; let i = index"
[section]="section" [childrenDraggable]="!sectionEditMode" [section]="section" [childrenDraggable]="!sectionEditMode"
(elementSelected)="elementSelected($event)" (click)="selectSection(i)" (elementSelected)="elementSelected($event)" (click)="selectSection(i)"
cdkDropList (cdkDropListDropped)="elementDropped($event)" [cdkDropListData]="section" cdkDropList cdkDropListSortingDisabled
(cdkDropListDropped)="elementDropped($event)" [cdkDropListData]="section"
[ngStyle]="{ [ngStyle]="{
border: i === selectedSectionIndex ? '1px solid': '1px dotted', border: i === selectedSectionIndex ? '1px solid': '1px dotted',
'width.px': page.width, 'width.px': page.width,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment