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

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

parent 92aaf910
......@@ -3256,9 +3256,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
borad.emit("disable");
}
})
this.drawingCount ++;
if(this.drawingCount == 1) {
// this.drawingCount ++;
// if(this.drawingCount == 1) {
// this.disableScroll()
// }
})
drawingBoard.on("onPainting", (state)=>{
if(state) {
this.disableScroll()
} else {
this.enableScroll()
}
})
drawingBoard.on("onPaintingEnd", ()=>{
......@@ -3268,10 +3275,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
borad.emit("enable");
}
})
this.drawingCount --;
if(this.drawingCount == 0) {
this.enableScroll();
}
// this.drawingCount --;
// if(this.drawingCount == 0) {
// this.enableScroll();
// }
})
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