forked from profectus/Profectus
Fix particle effects not reloading when the Particles component is re-mounted
This commit is contained in:
parent
65e265768b
commit
7db806afc6
2 changed files with 7 additions and 7 deletions
|
@ -63,9 +63,9 @@ const validLinks = computed(() => {
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.resize-listener {
|
.resize-listener {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 5px;
|
top: 0px;
|
||||||
left: 5px;
|
left: 0;
|
||||||
right: 5px;
|
right: -4px;
|
||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
z-index: -10;
|
z-index: -10;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
|
@ -63,7 +63,7 @@ export default defineComponent({
|
||||||
props.onInit(app.value as Application);
|
props.onInit(app.value as Application);
|
||||||
}
|
}
|
||||||
updateBounds();
|
updateBounds();
|
||||||
if (module.hot?.status() === "apply" && props.onHotReload) {
|
if (props.onHotReload) {
|
||||||
nextTick(props.onHotReload);
|
nextTick(props.onHotReload);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -102,9 +102,9 @@ export default defineComponent({
|
||||||
.not-fullscreen,
|
.not-fullscreen,
|
||||||
.resize-listener {
|
.resize-listener {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 5px;
|
top: 0px;
|
||||||
left: 5px;
|
left: 0;
|
||||||
right: 5px;
|
right: -4px;
|
||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue