gantt-task-react-powern 0.6.11 → 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.
package/dist/index.js CHANGED
@@ -3109,11 +3109,9 @@ var Gantt = function Gantt(_ref) {
3109
3109
  setFailedTask = _useState9[1];
3110
3110
 
3111
3111
  var svgWidth = columnWidth < 55 ? (dateSetup.dates.length + 0.5) * columnWidth : dateSetup.dates.length * columnWidth;
3112
- var displayedTasks = React.useMemo(function () {
3113
- var filtered = onExpanderClick ? removeHiddenTasks(tasks) : tasks;
3114
- return filtered.sort(sortTasks);
3115
- }, [tasks, onExpanderClick]);
3116
- var ganttFullHeight = displayedTasks.length * rowHeight;
3112
+ var ganttFullHeight = React.useMemo(function () {
3113
+ return barTasks.length * rowHeight;
3114
+ }, [barTasks.length, rowHeight]);
3117
3115
 
3118
3116
  var _useState10 = React.useState(0),
3119
3117
  scrollY = _useState10[0],
@@ -3279,8 +3277,6 @@ var Gantt = function Gantt(_ref) {
3279
3277
  React.useEffect(function () {
3280
3278
  var _wrapperRef$current, _wrapperRef$current2, _wrapperRef$current3, _wrapperRef$current4;
3281
3279
 
3282
- if (isProcessing) return;
3283
-
3284
3280
  var handleWheel = function handleWheel(event) {
3285
3281
  if (event.shiftKey || event.deltaX) {
3286
3282
  var scrollMove = event.deltaX ? event.deltaX : event.deltaY;
@@ -3373,7 +3369,7 @@ var Gantt = function Gantt(_ref) {
3373
3369
  (_wrapperRef$current7 = wrapperRef.current) === null || _wrapperRef$current7 === void 0 ? void 0 : _wrapperRef$current7.removeEventListener("touchend", handleLogTouch);
3374
3370
  (_wrapperRef$current8 = wrapperRef.current) === null || _wrapperRef$current8 === void 0 ? void 0 : _wrapperRef$current8.removeEventListener("touchend", handleLogTouch);
3375
3371
  };
3376
- }, [wrapperRef, scrollY, scrollX, ganttHeight, svgWidth, rtl, ganttFullHeight, isProcessing]);
3372
+ }, [wrapperRef, scrollY, scrollX, ganttHeight, svgWidth, rtl, ganttFullHeight]);
3377
3373
 
3378
3374
  var handleScrollY = function handleScrollY(event) {
3379
3375
  if (scrollY !== event.currentTarget.scrollTop && !ignoreScrollEvent) {