publ-echo-test 0.0.152 → 0.0.154
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.
@@ -437,6 +437,26 @@ var GroupItem = function (_a) {
|
|
437
437
|
onContextMenu: function (e) {
|
438
438
|
onContextGroup(e);
|
439
439
|
},
|
440
|
+
onMouseDown: function (e) {
|
441
|
+
if (isDragging || isResizing) {
|
442
|
+
return;
|
443
|
+
}
|
444
|
+
// 일시적으로 pointer-events 비활성화
|
445
|
+
if (elementRef.current) {
|
446
|
+
elementRef.current.style.pointerEvents = 'none';
|
447
|
+
}
|
448
|
+
// 현재 마우스 위치에서 실제 요소 찾기
|
449
|
+
var underlyingElement = document.elementFromPoint(e.clientX, e.clientY);
|
450
|
+
console.log(underlyingElement);
|
451
|
+
// pointer-events 복구
|
452
|
+
if (elementRef.current) {
|
453
|
+
elementRef.current.style.pointerEvents = 'auto';
|
454
|
+
}
|
455
|
+
if (underlyingElement &&
|
456
|
+
underlyingElement.classList.contains('react-grid-item')) {
|
457
|
+
underlyingElement.classList.add('hovered');
|
458
|
+
}
|
459
|
+
},
|
440
460
|
});
|
441
461
|
// newChild = mixinResizable(newChild, pos, isResizable);
|
442
462
|
newChild = mixinDraggable(newChild, isDraggable);
|