gantt-task-react-powern 0.6.9 → 0.6.10

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
@@ -3281,6 +3281,8 @@ var Gantt = function Gantt(_ref) {
3281
3281
  React.useEffect(function () {
3282
3282
  var _wrapperRef$current, _wrapperRef$current2, _wrapperRef$current3, _wrapperRef$current4;
3283
3283
 
3284
+ if (isProcessing) return;
3285
+
3284
3286
  var handleWheel = function handleWheel(event) {
3285
3287
  if (event.shiftKey || event.deltaX) {
3286
3288
  var scrollMove = event.deltaX ? event.deltaX : event.deltaY;
@@ -3373,7 +3375,7 @@ var Gantt = function Gantt(_ref) {
3373
3375
  (_wrapperRef$current7 = wrapperRef.current) === null || _wrapperRef$current7 === void 0 ? void 0 : _wrapperRef$current7.removeEventListener("touchend", handleLogTouch);
3374
3376
  (_wrapperRef$current8 = wrapperRef.current) === null || _wrapperRef$current8 === void 0 ? void 0 : _wrapperRef$current8.removeEventListener("touchend", handleLogTouch);
3375
3377
  };
3376
- }, [wrapperRef, scrollY, scrollX, ganttHeight, svgWidth, rtl, ganttFullHeight]);
3378
+ }, [wrapperRef, scrollY, scrollX, ganttHeight, svgWidth, rtl, ganttFullHeight, isProcessing]);
3377
3379
 
3378
3380
  var handleScrollY = function handleScrollY(event) {
3379
3381
  if (scrollY !== event.currentTarget.scrollTop && !ignoreScrollEvent) {
@@ -3551,7 +3553,7 @@ var Gantt = function Gantt(_ref) {
3551
3553
  className: styles$9.wrapper,
3552
3554
  style: {
3553
3555
  position: "relative",
3554
- minHeight: "400px"
3556
+ minHeight: ganttHeight || 200
3555
3557
  }
3556
3558
  }, React__default.createElement("div", {
3557
3559
  style: {