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
277997aa
Commit
277997aa
authored
May 25, 2020
by
anton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix current annotation highlighting in CellAnnotationList.vue
parent
1edb37a9
Pipeline
#60440
passed with stage
in 23 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
partials/cells/CellAnnotationList.vue
partials/cells/CellAnnotationList.vue
+5
-2
No files found.
partials/cells/CellAnnotationList.vue
View file @
277997aa
...
...
@@ -139,8 +139,7 @@ export default {
if
(
!
this
.
annotations
||
!
this
.
annotations
.
length
)
return
let
idx
=
-
1
,
annotation
=
this
.
annotations
[
0
]
while
(
annotation
&&
idx
<
this
.
annotations
.
length
&&
this
.
baseSelector
>
DateTime
.
fromMillis
(
annotation
.
target
.
selector
.
_valueMillis
))
{
while
(
annotation
&&
idx
<
this
.
annotations
.
length
&&
this
.
baseMillis
>=
annotation
.
target
.
selector
.
_valueMillis
)
{
idx
++
annotation
=
this
.
annotations
[
idx
+
1
]
}
...
...
@@ -149,6 +148,10 @@ export default {
baseSelector
()
{
if
(
!
this
.
videoTime
)
return
DateTime
.
local
().
toISO
()
return
this
.
videoTime
.
plus
(
this
.
playerTime
*
1000
)
},
baseMillis
()
{
if
(
!
this
.
video
)
return
DateTime
.
local
().
toMillis
()
return
this
.
video
.
target
.
selector
.
_valueMillis
+
this
.
playerTime
*
1000
}
},
methods
:
{
...
...
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