Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scilla-components
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
劳工
scilla-components
Commits
855b04e7
Commit
855b04e7
authored
Apr 11, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改callOnNextTick方法,不去重
parent
37670302
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
TouchZoom.ts
src/animation/TouchZoom.ts
+1
-1
Button.ts
src/ui/Button.ts
+3
-3
ScrollView.ts
src/ui/ScrollView.ts
+2
-2
No files found.
src/animation/TouchZoom.ts
View file @
855b04e7
...
...
@@ -44,7 +44,7 @@ export default class TouchZoom extends InteractComponent {
}
}
onGlobalTouchEnd
(
e
)
{
onGlobalTouchEnd
(
e
)
:
boolean
{
super
.
onGlobalTouchEnd
(
e
);
if
(
this
.
_touchBegin
)
{
...
...
src/ui/Button.ts
View file @
855b04e7
...
...
@@ -84,15 +84,15 @@ export default class Button extends InteractComponent {
this
.
touchOut
=
true
;
}
onGlobalTouchEnd
(
e
)
{
super
.
onGlobalTouchEnd
(
e
);
onGlobalTouchEnd
(
e
):
boolean
{
if
(
this
.
touchBeginWithSelf
&&
!
this
.
touchOut
)
{
this
.
onClick
.
invoke
();
}
this
.
touchBeginWithSelf
=
false
;
this
.
changeTexture
(
this
.
upRes
);
return
super
.
onGlobalTouchEnd
(
e
);
}
changeTexture
(
res
?)
{
...
...
src/ui/ScrollView.ts
View file @
855b04e7
...
...
@@ -68,7 +68,7 @@ export default class ScrollView extends InteractComponent {
this
.
_lastPos
.
setXY
(
tx
,
ty
);
}
onGlobalTouchMove
(
e
)
{
onGlobalTouchMove
(
e
)
:
boolean
{
super
.
onGlobalTouchMove
(
e
);
if
(
!
this
.
_beginPos
)
{
...
...
@@ -115,7 +115,7 @@ export default class ScrollView extends InteractComponent {
this
.
_lastPos
.
setXY
(
x
,
y
);
}
onGlobalTouchEnd
(
e
)
{
onGlobalTouchEnd
(
e
)
:
boolean
{
super
.
onGlobalTouchEnd
(
e
);
if
(
!
this
.
_beginPos
)
{
...
...
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