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
c5758be6
Commit
c5758be6
authored
Feb 28, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
屏蔽hand未完成的dblclick居中功能
parent
c9f2755c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
index.html
dist/index.html
+1
-1
hand.js
src/module/hand.js
+3
-3
No files found.
dist/index.html
View file @
c5758be6
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<script
src=
"social.js"
charset=
"utf-8"
></script>
<script
src=
"social.js"
charset=
"utf-8"
></script>
<script
src=
"../kity/dist/kitygraph.all.js"
charset=
"utf-8"
></script>
<script
src=
"../kity/dist/kitygraph.all.js"
charset=
"utf-8"
></script>
<script
src=
"../configure.js"
charset=
"utf-8"
></script>
<script
src=
"../configure.js"
charset=
"utf-8"
></script>
<script
src=
"../dist/dev.
js
"
charset=
"utf-8"
></script>
<script
src=
"../dist/dev.
php
"
charset=
"utf-8"
></script>
<script
src=
"../lang/zh-cn/zh-cn.js"
charset=
"utf-8"
></script>
<script
src=
"../lang/zh-cn/zh-cn.js"
charset=
"utf-8"
></script>
<link
href=
"../themes/default/css/import.css"
type=
"text/css"
rel=
"stylesheet"
>
<link
href=
"../themes/default/css/import.css"
type=
"text/css"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"social.css"
>
<link
rel=
"stylesheet"
href=
"social.css"
>
...
...
src/module/hand.js
View file @
c5758be6
...
@@ -94,8 +94,8 @@ KityMinder.registerModule( 'Hand', function () {
...
@@ -94,8 +94,8 @@ KityMinder.registerModule( 'Hand', function () {
}
}
},
},
mousewheel
:
function
(
e
)
{
mousewheel
:
function
(
e
)
{
var
dx
=
e
.
originEvent
.
wheelDeltaX
||
e
.
originEvent
.
wheelDelta
,
var
dx
=
e
.
originEvent
.
wheelDeltaX
||
0
,
dy
=
e
.
originEvent
.
wheelDeltaY
||
0
;
dy
=
e
.
originEvent
.
wheelDeltaY
||
e
.
originEvent
.
wheelDelta
;
this
.
_viewDragger
.
move
(
{
this
.
_viewDragger
.
move
(
{
x
:
dx
/
2.5
,
x
:
dx
/
2.5
,
y
:
dy
/
2.5
y
:
dy
/
2.5
...
@@ -108,7 +108,7 @@ KityMinder.registerModule( 'Hand', function () {
...
@@ -108,7 +108,7 @@ KityMinder.registerModule( 'Hand', function () {
var
offset
=
this
.
getRoot
().
getRenderContainer
(
this
.
getRenderContainer
()).
getTransform
().
getTranslate
();
var
offset
=
this
.
getRoot
().
getRenderContainer
(
this
.
getRenderContainer
()).
getTransform
().
getTranslate
();
var
dx
=
viewport
.
center
.
x
-
offset
.
x
,
var
dx
=
viewport
.
center
.
x
-
offset
.
x
,
dy
=
viewport
.
center
.
y
-
offset
.
y
;
dy
=
viewport
.
center
.
y
-
offset
.
y
;
this
.
getRenderContainer
().
fxTranslate
(
dx
,
dy
,
300
);
//
this.getRenderContainer().fxTranslate(dx, dy, 300);
}
}
}
}
};
};
...
...
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