@worktile/gantt 15.1.2 → 15.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bar/bar.component.scss +4 -0
- package/esm2020/components/bar/bar-drag.mjs +1 -3
- package/esm2020/components/bar/bar.component.mjs +5 -1
- package/fesm2015/worktile-gantt.mjs +4 -2
- package/fesm2015/worktile-gantt.mjs.map +1 -1
- package/fesm2020/worktile-gantt.mjs +4 -2
- package/fesm2020/worktile-gantt.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2867,11 +2867,9 @@ class GanttBarDrag {
|
|
|
2867
2867
|
dragBackdropElement.style.display = 'none';
|
|
2868
2868
|
}
|
|
2869
2869
|
setDraggingStyles() {
|
|
2870
|
-
this.barElement.style.pointerEvents = 'none';
|
|
2871
2870
|
this.barElement.classList.add('gantt-bar-draggable-drag');
|
|
2872
2871
|
}
|
|
2873
2872
|
clearDraggingStyles() {
|
|
2874
|
-
this.barElement.style.pointerEvents = '';
|
|
2875
2873
|
this.barElement.classList.remove('gantt-bar-draggable-drag');
|
|
2876
2874
|
}
|
|
2877
2875
|
barDragMove() {
|
|
@@ -3155,7 +3153,11 @@ class NgxGanttBarComponent extends GanttItemUpper {
|
|
|
3155
3153
|
}
|
|
3156
3154
|
ngOnInit() {
|
|
3157
3155
|
super.ngOnInit();
|
|
3156
|
+
this.dragContainer.dragStarted.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {
|
|
3157
|
+
this.elementRef.nativeElement.style.pointerEvents = 'none';
|
|
3158
|
+
});
|
|
3158
3159
|
this.dragContainer.dragEnded.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {
|
|
3160
|
+
this.elementRef.nativeElement.style.pointerEvents = '';
|
|
3159
3161
|
this.setContentBackground();
|
|
3160
3162
|
});
|
|
3161
3163
|
}
|