lyb-pixi-js 1.11.18 → 1.11.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,7 +18,7 @@ export class LibPixiPuzzleBg extends Container {
|
|
|
18
18
|
bg.position.set(x || 0, y || 0);
|
|
19
19
|
//监听鼠标空格事件
|
|
20
20
|
document.addEventListener("keydown", (e) => {
|
|
21
|
-
if (e.ctrlKey && e.key.toLowerCase() === "
|
|
21
|
+
if (e.ctrlKey && e.key.toLowerCase() === "w") {
|
|
22
22
|
e.preventDefault();
|
|
23
23
|
bg.visible = !bg.visible;
|
|
24
24
|
}
|
package/lyb-pixi.js
CHANGED
|
@@ -57785,7 +57785,7 @@ void main(void){
|
|
|
57785
57785
|
bg.alpha = alpha || 0.25;
|
|
57786
57786
|
bg.position.set(x2 || 0, y2 || 0);
|
|
57787
57787
|
document.addEventListener("keydown", (e2) => {
|
|
57788
|
-
if (e2.ctrlKey && e2.key.toLowerCase() === "
|
|
57788
|
+
if (e2.ctrlKey && e2.key.toLowerCase() === "w") {
|
|
57789
57789
|
e2.preventDefault();
|
|
57790
57790
|
bg.visible = !bg.visible;
|
|
57791
57791
|
} else if (e2.code === "ArrowUp") {
|