We are using react-codemirror2 and have set up mouseenter events on individual Code Mirror lines. Unfortunately when using the mousewheel AND moving the mouse, if a new mouseenter event triggers, CodeMirror immediately stops scrolling. We suspect this is related to CodeMirror being re-rendered on every event.
Is there a idiomatic way to create hover events on CodeMirror components?
Gotcha - what about changing the line backgrounds on hover - is addLineClass the recommended way to do that? The hover events have been registering fine adding on individual lines but the problem is that CodeMirror seems to re-render on every addLineClass and stop any scrolling that is in motion.