Hello, I’m trying to change an editor’s scroll in two ways:
I’ve got the editor inside a large body. I want to scroll freely through the body with regular scrolling (i.e., mouse wheel or two finger scrolling in Macbook) and even when the cursor is inside the editor I want to keep scrolling the body and not scroll the editor. I never want to scroll the editor with regular scrolling
I want to scroll the editor using drag scrolling
I think I’m able to implement both of these things but I can’t seem to understand which div or class the editor scrolling belongs to? Could you give me some pointers on how I should go about to implementing this? I’ve tried preventing scrolling in
CodeMirror classes but it didn’t seem to work.