Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
et_02
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
et_02
Commits
b1fd717f
Commit
b1fd717f
authored
Feb 25, 2021
by
智慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:解决模版拖进度条不动问题
parent
6e169928
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
helloworld.fire
play/assets/sbox-video-ljx/Scene/helloworld.fire
+1
-1
VideoPlayer.js
play/assets/sbox-video-ljx/Script/VideoPlayer.js
+1
-1
No files found.
play/assets/sbox-video-ljx/Scene/helloworld.fire
View file @
b1fd717f
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
"array": [
"array": [
0,
0,
0,
0,
753.429442655007
2,
476.611668313992
2,
0,
0,
0,
0,
0,
0,
...
...
play/assets/sbox-video-ljx/Script/VideoPlayer.js
View file @
b1fd717f
...
@@ -164,7 +164,7 @@ cc.Class({
...
@@ -164,7 +164,7 @@ cc.Class({
this
.
ProgressBar
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
(
e
)
=>
{
this
.
ProgressBar
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
(
e
)
=>
{
const
pos
=
e
.
getLocation
();
const
pos
=
e
.
getLocation
();
const
pPos
=
this
.
ProgressBar
.
node
.
convertToNodeSpaceAR
(
pos
);
const
pPos
=
this
.
ProgressBar
.
node
.
convertToNodeSpaceAR
(
pos
);
newX
=
Math
.
min
(
maxX
,
Math
.
max
(
pPos
.
x
,
minX
));
let
newX
=
Math
.
min
(
maxX
,
Math
.
max
(
pPos
.
x
,
minX
));
this
.
updateBarByPos
(
newX
);
this
.
updateBarByPos
(
newX
);
// console.log("ProgressBar TOUCH_START", newX);
// console.log("ProgressBar TOUCH_START", newX);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment