gantt-task-react-v 1.7.9 → 1.8.0
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.
|
@@ -11207,7 +11207,8 @@ const TaskListInner = ({
|
|
|
11207
11207
|
return void 0;
|
|
11208
11208
|
const update = () => {
|
|
11209
11209
|
const sl = scrollEl.scrollLeft;
|
|
11210
|
-
const
|
|
11210
|
+
const visibleWidth = scrollEl.clientWidth;
|
|
11211
|
+
const maxSl = Math.max(0, taskListWidth - visibleWidth);
|
|
11211
11212
|
const leftVal = `${sl}px`;
|
|
11212
11213
|
const rightVal = `${sl - maxSl}px`;
|
|
11213
11214
|
scrollEl.style.setProperty("--pinned-translate-left", leftVal);
|
|
@@ -11224,7 +11224,8 @@
|
|
|
11224
11224
|
return void 0;
|
|
11225
11225
|
const update = () => {
|
|
11226
11226
|
const sl = scrollEl.scrollLeft;
|
|
11227
|
-
const
|
|
11227
|
+
const visibleWidth = scrollEl.clientWidth;
|
|
11228
|
+
const maxSl = Math.max(0, taskListWidth - visibleWidth);
|
|
11228
11229
|
const leftVal = `${sl}px`;
|
|
11229
11230
|
const rightVal = `${sl - maxSl}px`;
|
|
11230
11231
|
scrollEl.style.setProperty("--pinned-translate-left", leftVal);
|
package/package.json
CHANGED