Use `win→eventstate` instead of `win→event_last_handled`. Note: The mouse
position relative to the region must be calculated because in `Wheel Up/Down`
events `mval` is unassigned.
The `inline` specifier used in `mouse_in_category_tab` is also removed.
When the height of the editor couldn’t fit the sidebar tabs, they would shrink
to a minimum size that made it impossible to read the tab labels.
This pull request matches the behaviour with the Properties Editor navigation
bar, by introducing the following improvements:
* Avoid truncating tab labels.
* Allow scrolling when tabs don’t fit.
Behaviour is similar to how scrolling works in the Properties Editor navigation
bar, supporting mouse wheel up/down and MMB, and switching tabs with
`Ctrl+Wheel Up/Down`.