Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
vue-flow-editor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2023-11-30 14:44:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d92c3d24350a26e4f508b17917e596aeedd1e37c
d92c3d24
1 parent
15fa082d
fix 修复node节点拖动不顺畅的问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/behavior/drag-node.ts
src/behavior/drag-node.ts
View file @
d92c3d2
...
...
@@ -65,7 +65,7 @@ export function dragNode(G6) {
});
// 只拖动当前节点
if
(
dragNodes
.
length
===
0
)
{
if
(
dragNodes
.
length
===
1
)
{
this
.
target
=
item
;
this
.
target
.
origin
=
{
x
:
item
.
_cfg
.
model
.
x
,
...
...
@@ -111,7 +111,7 @@ export function dragNode(G6) {
graph
.
setAutoPaint
(
false
);
// 当targets中元素时,则说明拖动的是多个选中的元素
if
(
this
.
targets
.
length
>
0
)
{
if
(
this
.
targets
.
length
>
1
)
{
if
(
this
.
enableDelegate
)
{
this
.
_updateDelegate
(
e
);
}
else
{
...
...
Please
register
or
login
to post a comment