publ-echo-test 0.0.204 → 0.0.206
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.
@@ -60,13 +60,15 @@ var GridItem = function (_a) {
|
|
60
60
|
if (mutation.type === 'attributes') {
|
61
61
|
var oldClass = mutation.oldValue || '';
|
62
62
|
var newClass = (_b = (_a = mutation.target) === null || _a === void 0 ? void 0 : _a.getAttribute('class')) !== null && _b !== void 0 ? _b : '';
|
63
|
+
console.log('oldClass:', oldClass);
|
64
|
+
console.log('newClass:', newClass);
|
63
65
|
// hover로 인해 "hovered" 클래스가 추가된 경우
|
64
|
-
if (newClass.includes('hovered')) {
|
66
|
+
if (!oldClass.includes('hovered') && newClass.includes('hovered')) {
|
65
67
|
console.log('Hover 상태로 변경됨');
|
66
68
|
return;
|
67
69
|
}
|
68
70
|
// hover에서 벗어난 경우
|
69
|
-
if (!newClass.includes('hovered')) {
|
71
|
+
if (oldClass.includes('hovered') && !newClass.includes('hovered')) {
|
70
72
|
console.log('Hover 상태 해제됨');
|
71
73
|
return;
|
72
74
|
}
|
@@ -136,7 +138,7 @@ var GridItem = function (_a) {
|
|
136
138
|
return function () {
|
137
139
|
observer.disconnect();
|
138
140
|
};
|
139
|
-
}, [autoResize, isSelected,
|
141
|
+
}, [autoResize, isSelected, isResizing, props.w, props.h, x, y]);
|
140
142
|
// const moveDroppingItem = (prevProps: GridItemProps) => {
|
141
143
|
// const { droppingPosition } = props;
|
142
144
|
// if (!droppingPosition) return;
|