mirror of
http://junepve.top:3000/chicrobot/CINC.git
synced 2026-10-30 00:31:29 +08:00
fix(boot) 修复只能向下滚动的问题
This commit is contained in:
1 parent
6ca6595127
commit
6dbce8bdd5
5 files changed
+45
-20
No files matched your search
@@ -2,19 +2,15 @@
|
||||
export default {
|
||||
// 游戏渲染类型:Phaser.AUTO表示自动选择最佳渲染方式(WebGL或Canvas)
|
||||
type: Phaser.AUTO,
|
||||
// 游戏窗口宽度:设置为浏览器窗口的宽度
|
||||
width: window.innerWidth,
|
||||
// 游戏窗口高度:设置为浏览器窗口的高度
|
||||
height: window.innerHeight,
|
||||
// 游戏背景颜色:使用十六进制颜色值设置为天蓝色
|
||||
backgroundColor: '#87ceeb',
|
||||
backgroundColor: '#bbbbbb',
|
||||
// 输入系统配置
|
||||
input: {
|
||||
// 启用多点触控支持
|
||||
multiTouch: true,
|
||||
// 触摸事件捕获配置
|
||||
touch: {
|
||||
// 捕获触摸事件,防止事件冒泡
|
||||
// 捕获触摸事件,防止事件冒泡,阻止浏览器默认触摸行为(如页面滚动)
|
||||
capture: true
|
||||
}
|
||||
},
|
||||
@@ -36,8 +32,6 @@ export default {
|
||||
mode: Phaser.Scale.RESIZE,
|
||||
// 自动居中:Phaser.Scale.NO_CENTER表示不自动居中游戏窗口
|
||||
autoCenter: Phaser.Scale.NO_CENTER,
|
||||
// 扩展父容器:true表示游戏会扩展到父容器的大小
|
||||
expandParent: true,
|
||||
// 缩放后的宽度:设置为浏览器窗口宽度
|
||||
width: window.innerWidth,
|
||||
// 缩放后的高度:设置为浏览器窗口高度
|
||||
|
||||
Reference in new issue
Block a user