gantt-task-react-v 1.5.8 → 1.5.9
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.
|
@@ -10218,11 +10218,14 @@ const TaskListTableRowInner = forwardRef(
|
|
|
10218
10218
|
const onRowDoubleClick = useCallback(
|
|
10219
10219
|
(event) => {
|
|
10220
10220
|
event.preventDefault();
|
|
10221
|
+
if (task.type !== "empty") {
|
|
10222
|
+
scrollToTask(task);
|
|
10223
|
+
}
|
|
10221
10224
|
if (onDoubleClick) {
|
|
10222
10225
|
onDoubleClick(task);
|
|
10223
10226
|
}
|
|
10224
10227
|
},
|
|
10225
|
-
[onDoubleClick, task]
|
|
10228
|
+
[onDoubleClick, scrollToTask, task]
|
|
10226
10229
|
);
|
|
10227
10230
|
const onRootMouseDown = useCallback(
|
|
10228
10231
|
(event) => {
|
|
@@ -10230,6 +10233,9 @@ const TaskListTableRowInner = forwardRef(
|
|
|
10230
10233
|
if (event.button !== 0) {
|
|
10231
10234
|
return;
|
|
10232
10235
|
}
|
|
10236
|
+
if (event.detail >= 2) {
|
|
10237
|
+
return;
|
|
10238
|
+
}
|
|
10233
10239
|
if (task.type !== "empty") {
|
|
10234
10240
|
scrollToTask(task);
|
|
10235
10241
|
}
|
|
@@ -10235,11 +10235,14 @@
|
|
|
10235
10235
|
const onRowDoubleClick = React.useCallback(
|
|
10236
10236
|
(event) => {
|
|
10237
10237
|
event.preventDefault();
|
|
10238
|
+
if (task.type !== "empty") {
|
|
10239
|
+
scrollToTask(task);
|
|
10240
|
+
}
|
|
10238
10241
|
if (onDoubleClick) {
|
|
10239
10242
|
onDoubleClick(task);
|
|
10240
10243
|
}
|
|
10241
10244
|
},
|
|
10242
|
-
[onDoubleClick, task]
|
|
10245
|
+
[onDoubleClick, scrollToTask, task]
|
|
10243
10246
|
);
|
|
10244
10247
|
const onRootMouseDown = React.useCallback(
|
|
10245
10248
|
(event) => {
|
|
@@ -10247,6 +10250,9 @@
|
|
|
10247
10250
|
if (event.button !== 0) {
|
|
10248
10251
|
return;
|
|
10249
10252
|
}
|
|
10253
|
+
if (event.detail >= 2) {
|
|
10254
|
+
return;
|
|
10255
|
+
}
|
|
10250
10256
|
if (task.type !== "empty") {
|
|
10251
10257
|
scrollToTask(task);
|
|
10252
10258
|
}
|
package/package.json
CHANGED