diff options
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.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')); |