@mingxy/opencode-mascot 0.7.4 → 0.7.5
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/package.json
CHANGED
|
@@ -68,7 +68,6 @@ export function HomeMascot(props: HomeMascotProps): JSX.Element {
|
|
|
68
68
|
});
|
|
69
69
|
|
|
70
70
|
onScatter(() => {
|
|
71
|
-
renderers[currentName()].scatterIn();
|
|
72
71
|
});
|
|
73
72
|
|
|
74
73
|
renderers[currentName()].setCharacterHidden(true);
|
|
@@ -92,7 +91,6 @@ export function HomeMascot(props: HomeMascotProps): JSX.Element {
|
|
|
92
91
|
setTimeout(() => {
|
|
93
92
|
renderers[currentName()].setProp(null);
|
|
94
93
|
renderers[currentName()].setCharacterHidden(false);
|
|
95
|
-
renderers[currentName()].scatterIn();
|
|
96
94
|
}, 6000);
|
|
97
95
|
|
|
98
96
|
const stopDrag = () => {
|
|
@@ -209,7 +209,7 @@ export function SidebarMascot(props: SidebarMascotProps): JSX.Element {
|
|
|
209
209
|
setTimeout(() => setZBoost(false), 3500);
|
|
210
210
|
});
|
|
211
211
|
|
|
212
|
-
let scattered =
|
|
212
|
+
let scattered = true;
|
|
213
213
|
|
|
214
214
|
onScatter(() => {
|
|
215
215
|
if (scattered) return;
|
|
@@ -235,10 +235,6 @@ export function SidebarMascot(props: SidebarMascotProps): JSX.Element {
|
|
|
235
235
|
setTimeout(() => {
|
|
236
236
|
renderers[currentName()].setProp(null);
|
|
237
237
|
renderers[currentName()].setCharacterHidden(false);
|
|
238
|
-
if (!scattered) {
|
|
239
|
-
scattered = true;
|
|
240
|
-
renderers[currentName()].scatterIn();
|
|
241
|
-
}
|
|
242
238
|
}, 6000);
|
|
243
239
|
|
|
244
240
|
return (
|