fix editor scroll handling