Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM_4-2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
JM_4-2
Commits
47d10f2d
Commit
47d10f2d
authored
Aug 10, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 不滑动
parent
f806b5c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
play.component.html
src/app/play/play.component.html
+3
-3
play.component.ts
src/app/play/play.component.ts
+3
-3
No files found.
src/app/play/play.component.html
View file @
47d10f2d
...
...
@@ -2,7 +2,7 @@
<!-- <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> -->
<div
style=
" width: 100%; height: 100%; background-size: cover; display: flex; align-items: center; flex-direction: column;"
>
...
...
@@ -50,7 +50,7 @@
<label>
{{curSentenceData.textArr[0]}}
</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>
{{curSentenceData.textArr[1]}}
</label>
...
...
@@ -82,7 +82,7 @@
</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;"
>
<img
src=
"assets/play/bg.jpg"
style=
"width: 100%; height: 100%; position: absolute; "
/>
...
...
src/app/play/play.component.ts
View file @
47d10f2d
...
...
@@ -552,9 +552,9 @@ export class PlayComponent implements OnInit, OnDestroy {
})
this
.
wrap
.
nativeElement
.
addEventListener
(
"
touchmove
"
,
(
e
)
=>
{
e
.
preventDefault
();
});
//禁止页面滑动
//
this.wrap.nativeElement.addEventListener("touchmove", (e) => {
//
e.preventDefault();
//
});//禁止页面滑动
c
.
onEvent
(
'
course-in-screen
'
,
(
data
,
next
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment