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