gantt-task-react-powern 0.6.10 → 0.6.12

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.
@@ -3108,7 +3108,9 @@ var Gantt = function Gantt(_ref) {
3108
3108
  setFailedTask = _useState9[1];
3109
3109
 
3110
3110
  var svgWidth = columnWidth < 55 ? (dateSetup.dates.length + 0.5) * columnWidth : dateSetup.dates.length * columnWidth;
3111
- var ganttFullHeight = barTasks.length * rowHeight;
3111
+ var ganttFullHeight = useMemo(function () {
3112
+ return barTasks.length * rowHeight;
3113
+ }, [barTasks.length, rowHeight]);
3112
3114
 
3113
3115
  var _useState10 = useState(0),
3114
3116
  scrollY = _useState10[0],
@@ -3153,13 +3155,7 @@ var Gantt = function Gantt(_ref) {
3153
3155
  setIsProcessing(true);
3154
3156
  debounceRef.current = setTimeout(function () {
3155
3157
  var filteredTasks;
3156
-
3157
- if (onExpanderClick) {
3158
- filteredTasks = removeHiddenTasks(tasks);
3159
- } else {
3160
- filteredTasks = tasks;
3161
- }
3162
-
3158
+ filteredTasks = removeHiddenTasks(tasks);
3163
3159
  filteredTasks = filteredTasks.sort(sortTasks);
3164
3160
 
3165
3161
  var _ganttDateRange2 = ganttDateRange(filteredTasks, viewMode, preStepsCount),
@@ -3201,7 +3197,7 @@ var Gantt = function Gantt(_ref) {
3201
3197
  setBarTasks(convertToBarTasks(filteredTasks, newDates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor));
3202
3198
  setIsProcessing(false);
3203
3199
  }, delayToRender);
3204
- }, [tasks, viewMode, preStepsCount, rowHeight, barCornerRadius, columnWidth, taskHeight, handleWidth, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor, rtl, onExpanderClick]);
3200
+ }, [tasks, viewMode, preStepsCount, rowHeight, barCornerRadius, columnWidth, taskHeight, handleWidth, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor, rtl]);
3205
3201
  useEffect(function () {
3206
3202
  return function () {
3207
3203
  clearTimeout(debounceRef.current);
@@ -3280,8 +3276,6 @@ var Gantt = function Gantt(_ref) {
3280
3276
  useEffect(function () {
3281
3277
  var _wrapperRef$current, _wrapperRef$current2, _wrapperRef$current3, _wrapperRef$current4;
3282
3278
 
3283
- if (isProcessing) return;
3284
-
3285
3279
  var handleWheel = function handleWheel(event) {
3286
3280
  if (event.shiftKey || event.deltaX) {
3287
3281
  var scrollMove = event.deltaX ? event.deltaX : event.deltaY;
@@ -3374,7 +3368,7 @@ var Gantt = function Gantt(_ref) {
3374
3368
  (_wrapperRef$current7 = wrapperRef.current) === null || _wrapperRef$current7 === void 0 ? void 0 : _wrapperRef$current7.removeEventListener("touchend", handleLogTouch);
3375
3369
  (_wrapperRef$current8 = wrapperRef.current) === null || _wrapperRef$current8 === void 0 ? void 0 : _wrapperRef$current8.removeEventListener("touchend", handleLogTouch);
3376
3370
  };
3377
- }, [wrapperRef, scrollY, scrollX, ganttHeight, svgWidth, rtl, ganttFullHeight, isProcessing]);
3371
+ }, [wrapperRef, scrollY, scrollX, ganttHeight, svgWidth, rtl, ganttFullHeight]);
3378
3372
 
3379
3373
  var handleScrollY = function handleScrollY(event) {
3380
3374
  if (scrollY !== event.currentTarget.scrollTop && !ignoreScrollEvent) {
@@ -3552,7 +3546,7 @@ var Gantt = function Gantt(_ref) {
3552
3546
  className: styles$9.wrapper,
3553
3547
  style: {
3554
3548
  position: "relative",
3555
- minHeight: ganttHeight || 200
3549
+ minHeight: ganttHeight + 70 || 400
3556
3550
  }
3557
3551
  }, React.createElement("div", {
3558
3552
  style: {