@mingxy/opencode-mascot 0.5.0 → 0.5.1
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
|
@@ -185,11 +185,17 @@ export function SidebarMascot(props: SidebarMascotProps): JSX.Element {
|
|
|
185
185
|
setTimeout(() => setZBoost(false), 3500);
|
|
186
186
|
});
|
|
187
187
|
|
|
188
|
+
let scattered = false;
|
|
189
|
+
|
|
188
190
|
onScatter(() => {
|
|
191
|
+
if (scattered) return;
|
|
192
|
+
scattered = true;
|
|
189
193
|
renderers[currentName()].scatterIn();
|
|
190
194
|
});
|
|
191
195
|
|
|
192
196
|
setTimeout(() => {
|
|
197
|
+
if (scattered) return;
|
|
198
|
+
scattered = true;
|
|
193
199
|
renderers[currentName()].scatterIn();
|
|
194
200
|
}, 2000);
|
|
195
201
|
|