Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Motion Bank
MB.js
Quasar Components MoSys
Commits
251be353
Commit
251be353
authored
Oct 31, 2019
by
christianrhansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put function in variable
parent
ffd5d595
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
partials/GridEditor.vue
partials/GridEditor.vue
+10
-7
No files found.
partials/GridEditor.vue
View file @
251be353
...
...
@@ -454,39 +454,42 @@
},
methods
:
{
intersectionChanged
(
obj
)
{
//
let
_offsetLeft
=
Math
.
sign
(
obj
.
offsetLeft
)
// -------------------- move
if
(
obj
.
element
===
'
move
'
)
{
this
.
tempHandler
.
move
.
intersectingMain
=
obj
.
intersecting
// behind left side
if
(
Math
.
sign
(
obj
.
offsetLeft
)
<
0
)
{
if
(
_
offsetLeft
<
0
)
{
this
.
tempHandler
.
move
.
side
=
'
left
'
}
// intersecting
else
if
(
isNaN
(
Math
.
sign
(
obj
.
offsetLeft
))
)
{
else
if
(
isNaN
(
_
offsetLeft
))
{
if
(
this
.
tempHandler
.
move
.
intersectingMain
&&
this
.
tempHandler
.
move
.
side
===
'
right
'
)
this
.
tempHandler
.
resize
.
intersectingMain
=
false
}
// behind right side
else
if
(
Math
.
sign
(
obj
.
offsetLeft
)
===
1
)
{
else
if
(
_
offsetLeft
===
1
)
{
this
.
tempHandler
.
move
.
side
=
'
right
'
this
.
tempHandler
.
resize
.
intersectingMain
=
true
}
}
// -------------------- resize
if
(
obj
.
element
===
'
resize
'
)
{
else
if
(
obj
.
element
===
'
resize
'
)
{
this
.
tempHandler
.
resize
.
intersectingMain
=
obj
.
intersecting
// on left side
if
(
Math
.
sign
(
obj
.
offsetLeft
)
===
-
1
)
{
if
(
_
offsetLeft
===
-
1
)
{
this
.
tempHandler
.
resize
.
side
=
'
left
'
}
/*
// intersecting
else if (isNaN(Math.sign(obj.offsetLeft))) {
}
*/
// on right side
else
if
(
Math
.
sign
(
obj
.
offsetLeft
)
===
1
)
{
else
if
(
_
offsetLeft
===
1
)
{
this
.
tempHandler
.
resize
.
side
=
'
right
'
}
}
...
...
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