Fix scrollbar dragging in React editor

Fixes #2751