Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
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
劳工
zeroing-libs
Commits
c36439dd
Commit
c36439dd
authored
Jun 04, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
cb1d5229
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
4 deletions
+10
-4
.DS_Store
.DS_Store
+0
-0
.DS_Store
dist/.DS_Store
+0
-0
pictures.json
dist/customs/pictures.json
+1
-1
main.js
src/custom/pictures/debug/main.js
+1
-1
main.js.map
src/custom/pictures/debug/main.js.map
+1
-1
GameView.ts
src/custom/pictures/src/game/GameView.ts
+7
-1
No files found.
.DS_Store
View file @
c36439dd
No preview for this file type
dist/.DS_Store
View file @
c36439dd
No preview for this file type
dist/customs/pictures.json
View file @
c36439dd
This diff is collapsed.
Click to expand it.
src/custom/pictures/debug/main.js
View file @
c36439dd
This diff is collapsed.
Click to expand it.
src/custom/pictures/debug/main.js.map
View file @
c36439dd
This diff is collapsed.
Click to expand it.
src/custom/pictures/src/game/GameView.ts
View file @
c36439dd
...
@@ -229,7 +229,7 @@ export default class GameView extends engine.Container {
...
@@ -229,7 +229,7 @@ export default class GameView extends engine.Container {
this
.
onMove
,
this
.
onMove
,
this
this
);
);
this
.
stage
.
once
(
this
.
stage
.
addEventListener
(
engine
.
MouseEvent
.
MOUSE_UP
,
engine
.
MouseEvent
.
MOUSE_UP
,
this
.
stageOnUp
,
this
.
stageOnUp
,
this
this
...
@@ -247,6 +247,12 @@ export default class GameView extends engine.Container {
...
@@ -247,6 +247,12 @@ export default class GameView extends engine.Container {
this
this
);
);
this
.
stage
.
removeEventListener
(
engine
.
MouseEvent
.
MOUSE_UP
,
this
.
stageOnUp
,
this
);
// 拖动的图片的中心位置在图片之外,回到原来的位置
// 拖动的图片的中心位置在图片之外,回到原来的位置
if
(
this
.
centerY
<
0
||
this
.
centerX
<
0
)
{
if
(
this
.
centerY
<
0
||
this
.
centerX
<
0
)
{
this
.
dragPic
.
x
=
this
.
distanceX
this
.
dragPic
.
x
=
this
.
distanceX
...
...
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