Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Motion Bank
MB.js
Quasar Components MoSys
Commits
735a329c
Commit
735a329c
authored
Nov 06, 2019
by
christianrhansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mosys mobile: moving selected cell works (still extremely buggy)
parent
88ae5822
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
partials/GridEditor.vue
partials/GridEditor.vue
+12
-5
No files found.
partials/GridEditor.vue
View file @
735a329c
...
@@ -437,8 +437,10 @@
...
@@ -437,8 +437,10 @@
},
},
watch
:
{
watch
:
{
'
cellHandler.move.gridPosition
'
:
{
'
cellHandler.move.gridPosition
'
:
{
handler
:
function
(
val
)
{
handler
:
function
(
obj
)
{
console
.
log
(
'
col --->
'
,
val
)
if
(
this
.
showEditingCells
)
{
this
.
mobileCellMove
(
this
.
mobileSelectedCell
,
obj
.
column
,
obj
.
row
)
}
},
},
deep
:
true
deep
:
true
},
},
...
@@ -734,17 +736,21 @@
...
@@ -734,17 +736,21 @@
let
cellType
=
cell
.
component
let
cellType
=
cell
.
component
this
.
selectedCell
.
type
=
cellType
.
substr
(
4
,
cellType
.
length
-
4
)
this
.
selectedCell
.
type
=
cellType
.
substr
(
4
,
cellType
.
length
-
4
)
},
},
async
mobileCellMove
(
annotation
,
_x
,
_y
)
{
// async mobileCellMove (annotation, _x, _y) {
this
.
$el
.
scrollLeft
=
this
.
$el
.
scrollLeft
+
(
this
.
gridDimensions
.
full
.
cell
.
width
*
_x
)
async
mobileCellMove
(
annotation
,
x
,
y
)
{
// this.$el.scrollLeft = this.$el.scrollLeft + (this.gridDimensions.full.cell.width * _x)
let
let
parsed
=
annotation
.
target
.
selector
.
parse
(),
parsed
=
annotation
.
target
.
selector
.
parse
()
/*
sliced = parsed.xywh.slice(0, 4),
sliced = parsed.xywh.slice(0, 4),
x = sliced[0],
x = sliced[0],
y = sliced[1],
y = sliced[1],
w = sliced[2],
w = sliced[2],
h = sliced[3]
h = sliced[3]
*/
/*
// ----- x
// ----- x
if (_x === -1) if (x > 1) x += _x
if (_x === -1) if (x > 1) x += _x
if (_x === 1 && x < this.grid.config.columns - w + 1) x += _x
if (_x === 1 && x < this.grid.config.columns - w + 1) x += _x
...
@@ -752,6 +758,7 @@
...
@@ -752,6 +758,7 @@
// ----- y
// ----- y
if (_y === -1) if (y > 1) y += _y
if (_y === -1) if (y > 1) y += _y
if (_y === 1 && y < this.grid.config.rows - h + 1) y += _y
if (_y === 1 && y < this.grid.config.rows - h + 1) y += _y
*/
// x += _x
// x += _x
// y += _y
// y += _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