Refactor scrolling in Editor ruler canvas area into two utility methods