Commit 7374b001 authored by liujiangnan's avatar liujiangnan

fix: 拖动进度条总会弹到第一帧的问题

parent bc81ef00
{"ver":"1.1.2","uuid":"4f557179-a05f-4891-bac0-6a3d0275c8ce","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "4f557179-a05f-4891-bac0-6a3d0275c8ce",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
......@@ -283,14 +283,15 @@ cc.Class({
this.updateBarByPos(this.barTag.x);
this.triggerInteractive()
});
this.ProgressBar.off(cc.Node.EventType.TOUCH_START);
this.ProgressBar.on(cc.Node.EventType.TOUCH_START, (e) => {
const pos = e.getLocation();
const pPos = this.ProgressBar.convertToNodeSpaceAR(pos);
const newX = Math.min(maxX, Math.max(pPos.x, minX));
this.updateBarByPos(newX);
// console.log("ProgressBar TOUCH_START", newX);
});
// this.ProgressBar.off(cc.Node.EventType.TOUCH_START);
// this.ProgressBar.on(cc.Node.EventType.TOUCH_START, (e) => {
// console.log("==ProgressBar TOUCH_START==");
// const pos = e.getLocation();
// const pPos = this.ProgressBar.convertToNodeSpaceAR(pos);
// const newX = Math.min(maxX, Math.max(pPos.x, minX));
// this.updateBarByPos(newX);
// // console.log("ProgressBar TOUCH_START", newX);
// });
// this.videoPlayer.node.off(cc.Node.EventType.TOUCH_START);
// this.videoPlayer.node.on(cc.Node.EventType.TOUCH_START, (e) => {
// console.log("screen TOUCH_START");
......
......@@ -2,7 +2,7 @@
export const defaultData = {
"title": "Look,count and say and.",
"tipSwitch": "1",
"tipSwitch": "0",
"audio": "http://staging-teach.cdn.ireadabc.com/af5208a0e0d869f6be410c46e50bb501_l.mp3",
"imgAni": {
"ske": {
......@@ -18,6 +18,7 @@ export const defaultData = {
"name": "niao_tex.png"
}
},
"video_url": "http://staging-teach.cdn.ireadabc.com/c8b49f6f032bd91a637df072c01ccaf7.mp4",
// "video_url": "http://staging-teach.cdn.ireadabc.com/c8b49f6f032bd91a637df072c01ccaf7.mp4",
"video_url": "http://staging-teach.cdn.ireadabc.com/5d2e56f9c0d4307ab08df600d913b011.mp4",
"audioName": ""
};
\ No newline at end of file
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