diff options
author | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-27 05:13:29 +0200 |
---|---|---|
committer | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-27 05:13:29 +0200 |
commit | cab50e2c5272c1599e3b3e30522985b912a19ab7 (patch) | |
tree | d28ffc8f1e385a1427f004691b74960c6444ecf1 /frontend/src/app/_elements/reactive-background | |
parent | 982a04c28dcb401fa722cb48976379a1cf6298d8 (diff) | |
parent | a315d3c0bc44c091d7c85697c9c8135b314ebc06 (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')
-rw-r--r-- | frontend/src/app/_elements/reactive-background/reactive-background.component.ts | 4 |
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')); |