reiji-h 2 лет назад
Родитель
Сommit
288345eda3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/app/src/components/PageEditor/ScrollSyncHelper.ts

+ 1 - 1
apps/app/src/components/PageEditor/ScrollSyncHelper.ts

@@ -23,7 +23,7 @@ const getPreviewElements = (previewRootElement: HTMLElement): Array<Element> =>
     .filter((element) => { return !Number.isNaN(element.getAttribute('data-line')) });
 };
 
-
+// Ref: https://github.com/mikolalysenko/binary-search-bounds/blob/f436a2a8af11bf3208434e18bbac17e18e7a3a30/search-bounds.js
 const elementBinarySearch = (list: Array<Element>, fn: (index: number) => boolean): number => {
   let ok = 0;
   let ng = list.length;