Commit 47d10f2d authored by limingzhe's avatar limingzhe

fix: 不滑动

parent f806b5c1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- <div style=" display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;"> --> <!-- <div style=" display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;"> -->
<div class="game-container" #wrap style="height: 100%; overflow: hidden;" > <div class="game-container" #wrap style="height: 100%; width: 100%; overflow: hidden; position: fixed; top: 0; left: 0" >
<!-- <canvas id="canvas" style="width: 100%; height: 100%;" #canvas></canvas> --> <!-- <canvas id="canvas" style="width: 100%; height: 100%;" #canvas></canvas> -->
<div style=" width: 100%; height: 100%; background-size: cover; display: flex; align-items: center; flex-direction: column;"> <div style=" width: 100%; height: 100%; background-size: cover; display: flex; align-items: center; flex-direction: column;">
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<label> <label>
{{curSentenceData.textArr[0]}} {{curSentenceData.textArr[0]}}
</label> </label>
<input [value]="curInputValue" (change)="inputChange($event)" style="background-color: #007b3e; border-radius: 1.5vh; border-width: 0; z-index: 5; text-align: center; width: 35vh" /> <input [(ngModel)]="curInputValue" (change)="inputChange($event)" style="background-color: #007b3e; border-radius: 1.5vh; border-width: 0; z-index: 5; text-align: center; width: 35vh" />
<label> <label>
{{curSentenceData.textArr[1]}} {{curSentenceData.textArr[1]}}
</label> </label>
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</div> </div>
<!-- 结算界面 --> <!-- 结算界面 -->
<div *ngIf="isShowResult" style="z-index: 5; overflow: hidden; position: absolute; top:0; width: 100%; height: 100%; background-size: cover; display: flex; align-items: center; flex-direction: column;"> <div #result *ngIf="isShowResult" style="z-index: 5; overflow: hidden; position: absolute; top:0; width: 100%; height: 100%; background-size: cover; display: flex; align-items: center; flex-direction: column;">
<!-- 背景图 --> <!-- 背景图 -->
<div style="width: 100%; height: 100%; position: absolute;"> <div style="width: 100%; height: 100%; position: absolute;">
<img src="assets/play/bg.jpg" style="width: 100%; height: 100%; position: absolute; "/> <img src="assets/play/bg.jpg" style="width: 100%; height: 100%; position: absolute; "/>
......
...@@ -552,9 +552,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -552,9 +552,9 @@ export class PlayComponent implements OnInit, OnDestroy {
}) })
this.wrap.nativeElement.addEventListener("touchmove", (e) => { // this.wrap.nativeElement.addEventListener("touchmove", (e) => {
e.preventDefault(); // e.preventDefault();
});//禁止页面滑动 // });//禁止页面滑动
c.onEvent('course-in-screen', (data, next) => { c.onEvent('course-in-screen', (data, next) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment