reusing CustomMenu scroll code in CustomMenuBar.