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
53b90597
Commit
53b90597
authored
May 22, 2020
by
anton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read scrollLeft via $refs instead of event target
parent
154f333b
Pipeline
#60092
passed with stage
in 6 minutes and 43 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
partials/GridDisplay.vue
partials/GridDisplay.vue
+3
-3
partials/GridEditor.vue
partials/GridEditor.vue
+4
-4
No files found.
partials/GridDisplay.vue
View file @
53b90597
...
...
@@ -79,11 +79,11 @@
this
.
$q
.
loading
.
hide
()
},
methods
:
{
onScroll
(
val
)
{
onScroll
()
{
if
(
this
.
$route
.
query
.
x
)
this
.
$router
.
push
({
query
:
{}
})
if
(
!
this
.
locked
)
{
if
(
val
&&
this
.
data
&&
this
.
data
.
grid
)
{
this
.
$store
.
commit
(
'
mosys/setScrollConfig
'
,
[
this
.
data
.
grid
.
id
,
val
.
originalTarget
.
scrollLeft
])
if
(
this
.
$refs
.
gridContainer
&&
this
.
data
&&
this
.
data
.
grid
)
{
this
.
$store
.
commit
(
'
mosys/setScrollConfig
'
,
[
this
.
data
.
grid
.
id
,
this
.
$refs
.
gridContainer
.
scrollLeft
])
}
}
},
...
...
partials/GridEditor.vue
View file @
53b90597
<
template
lang=
"pug"
>
div.cell-grid-container.bg-dark.scroll(style="overflow-y: hidden; scroll-behavior: smooth;" @scroll="onScroll")
div.cell-grid-container.bg-dark.scroll(
ref="gridContainer"
style="overflow-y: hidden; scroll-behavior: smooth;" @scroll="onScroll")
q-window-resize-observable(@resize="updateGridDimensions")
//----- modal for existing cell editing
...
...
@@ -420,9 +420,9 @@
document
.
removeEventListener
(
'
mousemove
'
,
this
.
mouseMoveListener
)
},
methods
:
{
onScroll
(
val
)
{
if
(
val
&&
this
.
data
&&
this
.
data
.
grid
)
{
this
.
$store
.
commit
(
'
mosys/setScrollConfig
'
,
[
this
.
data
.
grid
.
id
,
val
.
originalTarget
.
scrollLeft
])
onScroll
()
{
if
(
this
.
$refs
.
gridContainer
&&
this
.
data
&&
this
.
data
.
grid
)
{
this
.
$store
.
commit
(
'
mosys/setScrollConfig
'
,
[
this
.
data
.
grid
.
id
,
this
.
$refs
.
gridContainer
.
scrollLeft
])
}
},
toggleAxis
()
{
...
...
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