diff --git a/src/GGanttChart.vue b/src/GGanttChart.vue index 47f6c34..00bb0a5 100644 --- a/src/GGanttChart.vue +++ b/src/GGanttChart.vue @@ -188,7 +188,7 @@ export default { let movedBars = didSnapBack ? new Set() : this.movedBarsInDrag // Magnetic suction if (movedBars.size && this.isMagnetic) { - let { left, right, move } = action + let { left, right/*, move*/ } = action movedBars.forEach((bar) => { if (this.timeaxisMode === 'month_days') { diff --git a/src/Playground.vue b/src/Playground.vue index 4fc4748..1a2be11 100644 --- a/src/Playground.vue +++ b/src/Playground.vue @@ -14,6 +14,8 @@ :row-label-width="`${rowLabelWidth}%`" :row-height="rowHeight" :theme="selectedTheme" + barStartKey="myStart" + barEndKey="myEnd" @dragend-bar="onDragend($event)" >