conditionally enable close tab action
increase max ticks to INT_MAX

Otherwise files with more than 1000 cannot be navigated properly with the
scrollbar buttons. For huge files this still fails.
add support for mouse wheel scrolling