aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_elements/reactive-background/reactive-background.component.ts
diff options
context:
space:
mode:
authorDanijel Andjelkovic <adanijel99@gmail.com>2022-03-27 05:13:29 +0200
committerDanijel Andjelkovic <adanijel99@gmail.com>2022-03-27 05:13:29 +0200
commitcab50e2c5272c1599e3b3e30522985b912a19ab7 (patch)
treed28ffc8f1e385a1427f004691b74960c6444ecf1 /frontend/src/app/_elements/reactive-background/reactive-background.component.ts
parent982a04c28dcb401fa722cb48976379a1cf6298d8 (diff)
parenta315d3c0bc44c091d7c85697c9c8135b314ebc06 (diff)
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into dev
# Conflicts: # frontend/src/app/app.module.ts
Diffstat (limited to 'frontend/src/app/_elements/reactive-background/reactive-background.component.ts')
-rw-r--r--frontend/src/app/_elements/reactive-background/reactive-background.component.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/app/_elements/reactive-background/reactive-background.component.ts b/frontend/src/app/_elements/reactive-background/reactive-background.component.ts
index 58670d32..95b61b1b 100644
--- a/frontend/src/app/_elements/reactive-background/reactive-background.component.ts
+++ b/frontend/src/app/_elements/reactive-background/reactive-background.component.ts
@@ -33,8 +33,8 @@ export class ReactiveBackgroundComponent implements OnInit {
ngOnInit(): void {
document.addEventListener('mousemove', (e) => {
- this.mouseX = e.pageX / this.width;
- this.mouseY = e.pageY / this.height;
+ this.mouseX = e.clientX / this.width;
+ this.mouseY = e.clientY / this.height;
})
this.canvas = (<HTMLCanvasElement>document.getElementById('bgCanvas'));