Scroll: make it work for both editor modes.