瀏覽代碼

comment out slimScroll codes

Yuki Takei 6 年之前
父節點
當前提交
dea92305a4
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      src/client/js/components/TableOfContents.jsx

+ 8 - 6
src/client/js/components/TableOfContents.jsx

@@ -80,14 +80,16 @@ class TableOfContents extends React.Component {
     const tocContentHeight = tocContentElem.getBoundingClientRect().height + 15; // add margin
 
     if (viewHeight < tocContentHeight) {
-      $('#revision-toc-content').slimScroll({
-        railVisible: true,
-        position: 'right',
-        height: viewHeight,
-      });
+      // FIXME: GW-1345
+      // $('#revision-toc-content').slimScroll({
+      //   railVisible: true,
+      //   position: 'right',
+      //   height: viewHeight,
+      // });
     }
     else {
-      $('#revision-toc-content').slimScroll({ destroy: true });
+      // FIXME: GW-1345
+      // $('#revision-toc-content').slimScroll({ destroy: true });
     }
   }