@lingjingai/script-editor 0.1.26 → 0.1.27
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 +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3109,6 +3109,8 @@ function AssetStateTimeline({
|
|
|
3109
3109
|
};
|
|
3110
3110
|
};
|
|
3111
3111
|
const clearPointerState = (pointerId) => {
|
|
3112
|
+
const nodeCaptureTarget = dragRef.current?.captureTarget;
|
|
3113
|
+
if (nodeCaptureTarget?.hasPointerCapture(pointerId)) nodeCaptureTarget.releasePointerCapture(pointerId);
|
|
3112
3114
|
if (rootRef.current?.hasPointerCapture(pointerId)) rootRef.current.releasePointerCapture(pointerId);
|
|
3113
3115
|
dragRef.current = null;
|
|
3114
3116
|
boxRef.current = null;
|
|
@@ -3126,12 +3128,13 @@ function AssetStateTimeline({
|
|
|
3126
3128
|
setSelectedKeys(keys);
|
|
3127
3129
|
dragRef.current = {
|
|
3128
3130
|
pointerId: e.pointerId,
|
|
3131
|
+
captureTarget: e.currentTarget,
|
|
3129
3132
|
startX: e.clientX,
|
|
3130
3133
|
startY: e.clientY,
|
|
3131
3134
|
keys,
|
|
3132
3135
|
dragging: false
|
|
3133
3136
|
};
|
|
3134
|
-
|
|
3137
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
3135
3138
|
};
|
|
3136
3139
|
const dragLabel = (keys) => {
|
|
3137
3140
|
if (keys.size !== 1) return `${keys.size} \u573A`;
|