Commit c8a5561e authored by 李维's avatar 李维

去掉暂停视频逻辑

parent e73c5be5
......@@ -223,7 +223,7 @@ export default class NewClass extends cc.Component {
this.progressDot.off(cc.Node.EventType.TOUCH_START);
this.progressDot.on(cc.Node.EventType.TOUCH_START, (e) => {
this.draging = true;
this.node.emit("pause");
// this.node.emit("pause");
});
this.progressDot.off(cc.Node.EventType.TOUCH_MOVE);
......@@ -246,9 +246,9 @@ export default class NewClass extends cc.Component {
this.node.on(cc.Node.EventType.TOUCH_END, (e) => {
if(this.draging) {
this.draging = false;
this.node.emit("play")
this.btn_play.active = false;
this.btn_pause.active = true;
// this.node.emit("play")
// this.btn_play.active = false;
// this.btn_pause.active = true;
this.centerInfo.active = false;
}
});
......@@ -257,9 +257,9 @@ export default class NewClass extends cc.Component {
this.node.on(cc.Node.EventType.MOUSE_UP, (e) => {
if(this.draging) {
this.draging = false;
this.node.emit("play")
this.btn_play.active = false;
this.btn_pause.active = true;
// this.node.emit("play")
// this.btn_play.active = false;
// this.btn_pause.active = true;
this.centerInfo.active = false;
}
});
......
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