Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DG_FAF
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
DG_FAF
Commits
899d39e3
Commit
899d39e3
authored
Jun 20, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复涂色评分题型画图时不能滚动的问题
parent
92aaf910
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
DG_FAF.ts
assets/DG_FAF/scene/DG_FAF.ts
+13
-6
No files found.
assets/DG_FAF/scene/DG_FAF.ts
View file @
899d39e3
...
@@ -3256,9 +3256,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -3256,9 +3256,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
borad
.
emit
(
"
disable
"
);
borad
.
emit
(
"
disable
"
);
}
}
})
})
this
.
drawingCount
++
;
// this.drawingCount ++;
if
(
this
.
drawingCount
==
1
)
{
// if(this.drawingCount == 1) {
// this.disableScroll()
// }
})
drawingBoard
.
on
(
"
onPainting
"
,
(
state
)
=>
{
if
(
state
)
{
this
.
disableScroll
()
this
.
disableScroll
()
}
else
{
this
.
enableScroll
()
}
}
})
})
drawingBoard
.
on
(
"
onPaintingEnd
"
,
()
=>
{
drawingBoard
.
on
(
"
onPaintingEnd
"
,
()
=>
{
...
@@ -3268,10 +3275,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -3268,10 +3275,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
borad
.
emit
(
"
enable
"
);
borad
.
emit
(
"
enable
"
);
}
}
})
})
this
.
drawingCount
--
;
//
this.drawingCount --;
if
(
this
.
drawingCount
==
0
)
{
//
if(this.drawingCount == 0) {
this
.
enableScroll
();
//
this.enableScroll();
}
//
}
})
})
rect
.
addChild
(
drawingBoard
);
rect
.
addChild
(
drawingBoard
);
};
};
...
...
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