Skip to content

Commit 20d0574

Browse files
committed
bufix
1 parent bafdf87 commit 20d0574

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@omnedia/ngx-particles",
33
"description": "A simple component library to create a container with an animated background.",
4-
"version": "1.1.3",
4+
"version": "1.1.4",
55
"peerDependencies": {
66
"@angular/common": "^18.2.0",
77
"@angular/core": "^18.2.0"

src/lib/ngx-particles.component.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class NgxParticlesComponent implements AfterViewInit, OnDestroy {
8282

8383
ngOnDestroy(): void {
8484
window.removeEventListener("resize", () => this.setCanvasSize());
85-
85+
8686
if (this.intersectionObserver) {
8787
this.intersectionObserver.disconnect();
8888
}
@@ -177,6 +177,8 @@ export class NgxParticlesComponent implements AfterViewInit, OnDestroy {
177177
return;
178178
}
179179

180+
this.isAnimating = true;
181+
180182
this.clearContext();
181183

182184
this.circles.forEach((circle: Circle, i: number) => {

0 commit comments

Comments
 (0)