core & ui_qt: fix vertical/horizontal scrolling