Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Patrik Meijer
react-components
Commits
383606f2
Commit
383606f2
authored
Nov 21, 2018
by
Patrik Meijer
Browse files
FIX offset
parent
7ff59e0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/ContainmentCanvas/ContainmentCanvas.jsx
View file @
383606f2
...
...
@@ -57,8 +57,8 @@ const canvasTarget = {
name
=
getIndexedName
(
name
,
getChildrenNames
(
props
.
gmeClient
,
props
.
activeNode
));
position
.
x
-=
dragItem
.
nodeData
.
offset
.
x
/
2
;
position
.
y
-=
dragItem
.
nodeData
.
offset
.
y
/
2
;
position
.
x
-=
dragItem
.
offset
.
x
;
position
.
y
-=
dragItem
.
offset
.
y
;
position
.
x
=
Math
.
trunc
(
position
.
x
);
position
.
y
=
Math
.
trunc
(
position
.
y
);
...
...
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