Commit c62d35dd authored by 李维's avatar 李维

调整打印输出

parent f9c6ba1e
......@@ -82,24 +82,28 @@ cc.Class({
this.dragBtn.off(cc.Node.EventType.TOUCH_ENDED);
this.dragBtn.on(cc.Node.EventType.TOUCH_ENDED, (e) => {
console.log("用户抬手-1");
if(this.userDragStart) {
this.userDragStart = false;
this.node.emit('on_drag_button', false);
}
});
this.dragBtn.on(cc.Node.EventType.MOUSE_UP, (e) => {
console.log("用户抬手-2");
if(this.userDragStart) {
this.userDragStart = false;
this.node.emit('on_drag_button', false);
}
});
cc.find('Canvas').on(cc.Node.EventType.TOUCH_ENDED, (e) => {
console.log("用户抬手-3");
if(this.userDragStart) {
this.userDragStart = false;
this.node.emit('on_drag_button', false);
}
});
cc.find('Canvas').on(cc.Node.EventType.MOUSE_UP, (e) => {
console.log("用户抬手-4");
if(this.userDragStart) {
this.userDragStart = false;
this.node.emit('on_drag_button', false);
......@@ -143,11 +147,11 @@ cc.Class({
})
this.node.on('update_video_progress', (value)=>{
console.log("update_video_progress");
// console.log("update_video_progress");
if(!this.userDragStart) {
this.setProgress(value);
} else {
console.log("用户没有拖动进度条")
// console.log("进度条拖动中")
}
})
......
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