Commit 899d39e3 authored by 李维's avatar 李维

修复涂色评分题型画图时不能滚动的问题

parent 92aaf910
...@@ -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);
}; };
......
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