Просмотр исходного кода

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

Enable animation when positioning comments in CM6

GitOrigin-RevId: 9a5355c3c2105a3dfa26590c2b007571b55c9dcc
Alf Eaton 4 лет назад
Родитель
Сommit
9062d4ce5d

+ 1 - 1
services/web/frontend/js/ide/review-panel/directives/reviewPanelSorted.js

@@ -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)