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
1135c5ce
Commit
1135c5ce
authored
Mar 07, 2014
by
techird
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into gh-pages
parents
333bdd6a
4ef2f0bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
12 deletions
+27
-12
kityminder.all.js
dist/kityminder.all.js
+25
-10
kityminder.all.min.js
dist/kityminder.all.min.js
+2
-2
No files found.
dist/kityminder.all.js
View file @
1135c5ce
...
@@ -3477,9 +3477,9 @@ var ViewDragger = kity.createClass( "ViewDragger", {
...
@@ -3477,9 +3477,9 @@ var ViewDragger = kity.createClass( "ViewDragger", {
dragger
.
setEnabled
(
true
);
dragger
.
setEnabled
(
true
);
isRootDrag
=
true
;
isRootDrag
=
true
;
var
me
=
this
;
var
me
=
this
;
setTimeout
(
function
()
{
setTimeout
(
function
()
{
me
.
setStatus
(
'hand'
);
me
.
setStatus
(
'hand'
);
},
1
);
},
1
);
}
}
}
);
}
);
...
@@ -3553,21 +3553,36 @@ KityMinder.registerModule( 'Hand', function () {
...
@@ -3553,21 +3553,36 @@ KityMinder.registerModule( 'Hand', function () {
}
}
},
},
mousewheel
:
function
(
e
)
{
mousewheel
:
function
(
e
)
{
var
dx
=
e
.
originEvent
.
wheelDeltaX
||
0
,
var
dx
,
dy
;
dy
=
e
.
originEvent
.
wheelDeltaY
||
e
.
originEvent
.
wheelDelta
;
e
=
e
.
originEvent
;
if
(
'wheelDeltaX'
in
e
)
{
dx
=
e
.
wheelDeltaX
||
0
;
dy
=
e
.
wheelDeltaY
||
0
;
}
else
{
dx
=
0
;
dy
=
e
.
wheelDelta
;
}
this
.
_viewDragger
.
move
(
{
this
.
_viewDragger
.
move
(
{
x
:
dx
/
2.5
,
x
:
dx
/
2.5
,
y
:
dy
/
2.5
y
:
dy
/
2.5
}
);
}
);
e
.
originEvent
.
preventDefault
();
e
.
preventDefault
();
},
},
dblclick
:
function
()
{
dblclick
:
function
(
e
)
{
if
(
e
.
getTargetNode
()
)
return
;
var
viewport
=
this
.
getPaper
().
getViewPort
();
var
viewport
=
this
.
getPaper
().
getViewPort
();
var
offset
=
this
.
getRoot
().
getRenderContainer
(
this
.
getRenderContainer
()
).
getTransform
().
getTranslate
(
);
var
offset
=
this
.
getRoot
().
getRenderContainer
(
).
getRenderBox
(
this
.
getRenderContainer
()
);
var
dx
=
viewport
.
center
.
x
-
offset
.
x
,
var
dx
=
viewport
.
center
.
x
-
offset
.
x
-
offset
.
width
/
2
,
dy
=
viewport
.
center
.
y
-
offset
.
y
;
dy
=
viewport
.
center
.
y
-
offset
.
y
;
//this.getRenderContainer().fxTranslate(dx, dy, 300
);
this
.
getRenderContainer
().
fxTranslate
(
dx
,
dy
,
1000
,
"easeOutQuint"
);
}
}
}
}
};
};
...
...
dist/kityminder.all.min.js
View file @
1135c5ce
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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