seat-editor 3.5.59 → 3.5.61
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.
|
@@ -328,9 +328,11 @@ const LayerView = (props) => {
|
|
|
328
328
|
const findDayaById = originalData({ id: dataId, type: "find" });
|
|
329
329
|
handleSelectComponent(findDayaById, e);
|
|
330
330
|
}
|
|
331
|
-
|
|
331
|
+
svg.removeEventListener("pointerup", pointerHandleUp);
|
|
332
|
+
svg.removeEventListener("touchend", pointerHandleUp);
|
|
332
333
|
};
|
|
333
|
-
|
|
334
|
+
svg.addEventListener("pointerup", pointerHandleUp, { once: true });
|
|
335
|
+
svg.addEventListener("touchend", pointerHandleUp, { once: true });
|
|
334
336
|
};
|
|
335
337
|
const handleMouseUp = () => {
|
|
336
338
|
var _a;
|
|
@@ -363,8 +365,8 @@ const LayerView = (props) => {
|
|
|
363
365
|
background: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : defaultBackground,
|
|
364
366
|
display: "block",
|
|
365
367
|
// pointerEvents: disabled ? "none" : "all",
|
|
366
|
-
touchAction: "none",
|
|
367
|
-
userSelect: "none",
|
|
368
|
+
// touchAction: "none",
|
|
369
|
+
// userSelect: "none",
|
|
368
370
|
} }, props.svgProps, { children: [hasBoundingBox && (_jsx("defs", { children: _jsx("clipPath", { id: "contentCrop", children: _jsx("rect", { x: boundingBox.minX, y: boundingBox.minY, width: boundingBox.width, height: boundingBox.height }) }) })), _jsx("g", { id: "main-layer", "clip-path": "url(#contentCrop)", children: _jsx(Layers, { components: [
|
|
369
371
|
...extraComponentsEditor,
|
|
370
372
|
...renderElements(componentsEditor, mappingKey, tableMatchKey),
|
|
@@ -327,9 +327,11 @@ const LayerView = (props) => {
|
|
|
327
327
|
const findDayaById = originalData({ id: dataId, type: "find" });
|
|
328
328
|
handleSelectComponent(findDayaById, e);
|
|
329
329
|
}
|
|
330
|
-
|
|
330
|
+
svg.removeEventListener("pointerup", pointerHandleUp);
|
|
331
|
+
svg.removeEventListener("touchend", pointerHandleUp);
|
|
331
332
|
};
|
|
332
|
-
|
|
333
|
+
svg.addEventListener("pointerup", pointerHandleUp, { once: true });
|
|
334
|
+
svg.addEventListener("touchend", pointerHandleUp, { once: true });
|
|
333
335
|
};
|
|
334
336
|
const handleMouseUp = () => {
|
|
335
337
|
var _a;
|
|
@@ -367,8 +369,8 @@ const LayerView = (props) => {
|
|
|
367
369
|
background: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : defaultBackground,
|
|
368
370
|
display: "block",
|
|
369
371
|
// pointerEvents: disabled ? "none" : "all",
|
|
370
|
-
touchAction: "none",
|
|
371
|
-
userSelect: "none",
|
|
372
|
+
// touchAction: "none",
|
|
373
|
+
// userSelect: "none",
|
|
372
374
|
}} {...props.svgProps}>
|
|
373
375
|
{hasBoundingBox && (<defs>
|
|
374
376
|
<clipPath id="contentCrop">
|