Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
renderingEngine
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
王剑峰
renderingEngine
Commits
7127aca9
Commit
7127aca9
authored
Dec 05, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复遮罩嵌套问题
修改滚动方向
parent
864665b3
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
engine.js
debug/engine.js
+2
-1
engine.js.map
debug/engine.js.map
+1
-1
ScrollContainer.ts
src/2d/ui/ScrollContainer.ts
+2
-1
No files found.
debug/engine.js
View file @
7127aca9
...
@@ -11107,12 +11107,13 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
...
@@ -11107,12 +11107,13 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
s
.
direction
=
exports
.
SCROLL_DIRECTION
.
VERTICAL
;
s
.
direction
=
exports
.
SCROLL_DIRECTION
.
VERTICAL
;
s
.
addEventListener
(
Event
.
ADDED_TO_STAGE
,
function
(
e
)
{
s
.
addEventListener
(
Event
.
ADDED_TO_STAGE
,
function
(
e
)
{
s
.
stage
.
addEventListener
(
MouseEvent
.
MOUSE_UP
,
s
.
onMouseEvent
,
s
);
s
.
stage
.
addEventListener
(
MouseEvent
.
MOUSE_UP
,
s
.
onMouseEvent
,
s
);
s
.
stage
.
addEventListener
(
MouseEvent
.
MOUSE_MOVE
,
s
.
onMouseEvent
,
s
);
});
});
s
.
addEventListener
(
Event
.
REMOVED_FROM_STAGE
,
function
(
e
)
{
s
.
addEventListener
(
Event
.
REMOVED_FROM_STAGE
,
function
(
e
)
{
s
.
stage
.
removeEventListener
(
MouseEvent
.
MOUSE_UP
,
s
.
onMouseEvent
,
s
);
s
.
stage
.
removeEventListener
(
MouseEvent
.
MOUSE_UP
,
s
.
onMouseEvent
,
s
);
s
.
stage
.
removeEventListener
(
MouseEvent
.
MOUSE_MOVE
,
s
.
onMouseEvent
,
s
);
});
});
s
.
addEventListener
(
MouseEvent
.
MOUSE_DOWN
,
s
.
onMouseEvent
,
s
);
s
.
addEventListener
(
MouseEvent
.
MOUSE_DOWN
,
s
.
onMouseEvent
,
s
);
s
.
addEventListener
(
MouseEvent
.
MOUSE_MOVE
,
s
.
onMouseEvent
,
s
);
s
.
addEventListener
(
Event
.
ENTER_FRAME
,
function
()
{
s
.
addEventListener
(
Event
.
ENTER_FRAME
,
function
()
{
var
view
=
s
.
viewPort
;
var
view
=
s
.
viewPort
;
if
(
s
.
autoScroll
)
if
(
s
.
autoScroll
)
...
...
debug/engine.js.map
View file @
7127aca9
This diff is collapsed.
Click to expand it.
src/2d/ui/ScrollContainer.ts
View file @
7127aca9
...
@@ -180,12 +180,13 @@ export class ScrollContainer extends Container {
...
@@ -180,12 +180,13 @@ export class ScrollContainer extends Container {
s
.
direction
=
SCROLL_DIRECTION
.
VERTICAL
;
s
.
direction
=
SCROLL_DIRECTION
.
VERTICAL
;
s
.
addEventListener
(
Event
.
ADDED_TO_STAGE
,
function
(
e
:
Event
)
{
s
.
addEventListener
(
Event
.
ADDED_TO_STAGE
,
function
(
e
:
Event
)
{
s
.
stage
.
addEventListener
(
MouseEvent
.
MOUSE_UP
,
s
.
onMouseEvent
,
s
);
s
.
stage
.
addEventListener
(
MouseEvent
.
MOUSE_UP
,
s
.
onMouseEvent
,
s
);
s
.
stage
.
addEventListener
(
MouseEvent
.
MOUSE_MOVE
,
s
.
onMouseEvent
,
s
);
});
});
s
.
addEventListener
(
Event
.
REMOVED_FROM_STAGE
,
function
(
e
:
Event
)
{
s
.
addEventListener
(
Event
.
REMOVED_FROM_STAGE
,
function
(
e
:
Event
)
{
s
.
stage
.
removeEventListener
(
MouseEvent
.
MOUSE_UP
,
s
.
onMouseEvent
,
s
);
s
.
stage
.
removeEventListener
(
MouseEvent
.
MOUSE_UP
,
s
.
onMouseEvent
,
s
);
s
.
stage
.
removeEventListener
(
MouseEvent
.
MOUSE_MOVE
,
s
.
onMouseEvent
,
s
);
});
});
s
.
addEventListener
(
MouseEvent
.
MOUSE_DOWN
,
s
.
onMouseEvent
,
s
);
s
.
addEventListener
(
MouseEvent
.
MOUSE_DOWN
,
s
.
onMouseEvent
,
s
);
s
.
addEventListener
(
MouseEvent
.
MOUSE_MOVE
,
s
.
onMouseEvent
,
s
);
// s.addEventListener(MouseEvent.MOUSE_UP, s.onMouseEvent, s);
// s.addEventListener(MouseEvent.MOUSE_UP, s.onMouseEvent, s);
// s.addEventListener(MouseEvent.MOUSE_OUT, s.onMouseEvent, s);
// s.addEventListener(MouseEvent.MOUSE_OUT, s.onMouseEvent, s);
s
.
addEventListener
(
Event
.
ENTER_FRAME
,
function
()
{
s
.
addEventListener
(
Event
.
ENTER_FRAME
,
function
()
{
...
...
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