Răsfoiți Sursa

comment out slimScroll codes

Yuki Takei 6 ani în urmă
părinte
comite
dea92305a4
1 a modificat fișierele cu 8 adăugiri și 6 ștergeri
  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 });
     }
   }