Skip to content

Commit 62ffdf1

Browse files
committed
scratch-mobile bug
1 parent 79fee8c commit 62ffdf1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

web/public/scratch3/scratch-mobile.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,34 @@
1616
var workId = urlParams('workId')
1717

1818
window.scratchConfig = {
19+
stageArea: {
20+
scale: 1,
21+
width: 480,
22+
height: 360,
23+
showControl: true,
24+
showLoading: false,
25+
fullscreenButton:{ //全屏按钮
26+
show: true,
27+
handleBeforeSetStageUnFull(){ //退出全屏前的操作
28+
return true
29+
},
30+
handleBeforeSetStageFull(){ //全屏前的操作
31+
return true
32+
}
33+
},
34+
startButton:{ //开始按钮
35+
show: true,
36+
handleBeforeStart(){ //开始前的操作
37+
return true
38+
}
39+
},
40+
stopButton:{ // 停止按钮
41+
show: true,
42+
handleBeforeStop(){ //停止前的操作
43+
return true
44+
}
45+
}
46+
},
1947
handleVmInitialized: (vm) => {
2048
window.vm = vm
2149
console.log(vm);

0 commit comments

Comments
 (0)