[Linux] Fix the overflow detection in scrolling

Also use enums as mouse button names