Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
476dd4c3
Commit
476dd4c3
authored
Feb 05, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed select
parent
c1eaf6c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mouse.js
src/module/mouse.js
+4
-4
No files found.
src/module/mouse.js
View file @
476dd4c3
...
...
@@ -5,7 +5,7 @@ KityMinder.registerModule( "MouseModule", function () {
return
kity
.
Vector
.
fromPoints
(
e
.
kityEvent
.
getPosition
(
0
),
e
.
kityEvent
.
getPosition
(
1
)
).
length
();
}
var
SelectArea
=
this
.
SelectArea
=
(
function
()
{
var
SelectArea
=
(
function
()
{
var
startPos
=
null
;
var
selectRect
=
null
;
var
min
=
function
(
a
,
b
)
{
...
...
@@ -83,7 +83,7 @@ KityMinder.registerModule( "MouseModule", function () {
this
.
select
(
clickNode
,
true
);
}
else
{
this
.
removeAllSelectedNodes
();
this
.
SelectArea
.
selectStart
(
e
);
SelectArea
.
selectStart
(
e
);
}
},
'touchstart'
:
function
(
e
)
{
...
...
@@ -117,10 +117,10 @@ KityMinder.registerModule( "MouseModule", function () {
}
},
'mousemove touchmove'
:
function
(
e
)
{
this
.
SelectArea
.
selectMove
(
e
);
SelectArea
.
selectMove
(
e
);
},
'touchend mouseup'
:
function
(
e
)
{
this
.
SelectArea
.
selectEnd
(
e
);
SelectArea
.
selectEnd
(
e
);
}
}
};
...
...
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