We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 883607e commit 5f03b39Copy full SHA for 5f03b39
nightly/zephyr.js
@@ -43,6 +43,8 @@ PIXI.Zephyr = {
43
useMouse: () => {
44
PIXI.Mouse.bounds = document.getElementsByTagName("html")[0].getBoundingClientRect();
45
PIXI.Mouse.container = document.getElementsByTagName("html")[0];
46
+ PIXI.Mouse.x = screen.width / 2;
47
+ PIXI.Mouse.y = screen.height / 2;
48
PIXI.Mouse.setContainer = (view) => {
49
PIXI.Mouse.container = view;
50
PIXI.Mouse.bounds = PIXI.Mouse.container.getBoundingClientRect();
0 commit comments