ui: fix scrolling in Firefox