title: Disabling scrolling on Code Mirror element
body: <p>I’m trying to achieve a similar effect on a Code Mirror component that would be achieved by doing overflow: hidden on a div.</p>
  
  <p>In practice this means:</p>
  
  <ul>
  <li>No visible scroll bars</li>
  <li>When “scroll action” takes place on the editor, the website body moves itself (i.e., impossible to scroll editor relative to the website)</li>
  </ul>
  
  <p>How could I do that?</p>
  
  <p>P.S.</p>
  
  <p>A simple “overflow: hidden” didn’t work because it looks like CodeMirror creates a separate div for vertical scroll bar and horizontal scrollbar. My guess is that javascript is used to handle actual scrolling behavior. Do I need javascript to revert this?</p>
  
  <p>P.S.S.</p>
  
  <p>I'm using <code>react-codemirror2</code>, but looking for a general answer and happy to figure out how to execute it within react.</p>