Merge pull request #7983 from overleaf/td-cm6-smooth-scroll-between-comments

Enable animation when positioning comments in CM6

GitOrigin-RevId: 9a5355c3c2105a3dfa26590c2b007571b55c9dcc
This commit is contained in:
Alf Eaton 2022-05-18 11:38:46 +01:00 committed by Copybot
parent a3459a1842
commit 9062d4ce5d

View file

@ -61,7 +61,7 @@ export default App.directive('reviewPanelSorted', $timeout => ({
} else {
entry.$layout_el = entry.$indicator_el
}
entry.height = entry.$layout_el.height() // Do all of our DOM reads first for perfomance, see http://wilsonpage.co.uk/preventing-layout-thrashing/
entry.height = entry.$layout_el.height() // Do all of our DOM reads first for performance, see http://wilsonpage.co.uk/preventing-layout-thrashing/
entries.push(entry)
}
entries.sort((a, b) => a.scope.entry.offset - b.scope.entry.offset)