Skip to content
Snippets Groups Projects
Commit 610c13cc authored by Yannis Barlas's avatar Yannis Barlas
Browse files

fix offsets to work with substance beta 6

parent 61bd50d1
No related branches found
No related tags found
No related merge requests found
......@@ -75,8 +75,6 @@ class TrackChangesProvider extends TOCProvider {
const isFromSameUser = this.isAnnotationFromTheSameUser(annotation)
const mode = this.getMode()
// console.log(annotation)
if (isFromSameUser) {
this.insertText(event)
if (isOnLeftEdge) this.expandAnnotationToDirection(annotation)
......@@ -350,8 +348,8 @@ class TrackChangesProvider extends TOCProvider {
this.removeTrackAnnotation(annotation)
})
selection.startOffset = minBy(selectionArray, 'startOffset').startOffset
selection.endOffset = maxBy(selectionArray, 'endOffset').endOffset
selection.start.offset = minBy(selectionArray, 'start.offset').start.offset
selection.end.offset = maxBy(selectionArray, 'end.offset').end.offset
return selection
// TODO
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment