ui: fix horizontal mouse movement with widescreen resolutions