Fixing mouse detection

This commit is contained in:
2023-08-27 18:14:24 +02:00
parent 3cd115c488
commit 2b37a025be
3 changed files with 14 additions and 10 deletions

View File

@ -127,6 +127,11 @@ export class UserAPI {
// Mouse functions
// =============================================================
onmousemove = (e: MouseEvent) => {
this.app._mouseX = e.clientX;
this.app._mouseY = e.clientY;
}
public mouseX = (): number => {
/**
* @returns The current x position of the mouse