Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP15
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
OP15
Commits
f5ebf069
Commit
f5ebf069
authored
3 years ago
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1234
parent
0a1fa64d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
OP15.js
play/assets/OP15/scene/OP15.js
+4
-3
No files found.
play/assets/OP15/scene/OP15.js
View file @
f5ebf069
...
...
@@ -531,7 +531,7 @@ cc.Class({
});
window
.
air
=
window
.
air
||
{}
if
(
window
.
air
)
{
window
.
air
.
osmoFingerReadCallback
=
(
pos
)
=>
{
window
.
air
.
osmoFingerReadCallback
=
(
result
)
=>
{
if
(
!
this
.
gameMachineService
)
{
return
;
}
...
...
@@ -542,10 +542,11 @@ cc.Class({
// && this.gameMachineService.state.value['playing']['play'] == 'answer'
// if (st) {
// }
const
p
=
JSON
.
parse
(
pos
);
const
resultObj
=
JSON
.
parse
(
result
);
const
p
=
resultObj
.
finger_pos_in_page
;
this
.
_lastFingerPosition
=
{
pos
:{
x
:
p
.
x
*
2
,
x
:
p
.
x
,
y
:
p
.
y
},
dirty
:
true
...
...
This diff is collapsed.
Click to expand it.
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