Fix #117572: Top vertical scrollbar tool not working properly #117984

Merged
Julian Eisel merged 1 commits from JulianEisel/blender:temp-fix-scrollbar-scrub-ui-masks into blender-v4.1-release 2024-02-08 14:25:59 +01:00

1 Commits

Author SHA1 Message Date
Julian Eisel 1689932972 Fix #117572: Top vertical scrollbar tool not working properly
Remove ugly/fragile special case in `view2d_masks()` that would clamp
the scrollbar-masks by the scrubbing UI. It's now possible to pass
custom scrollbar-masks to `View2D` via `UI_view2d_scrollers_draw()`. So
use this instead, making region code control its own masks, rather than
relying on special case handling in generic `View2D` code.

Also update comment in `scroller_activate_init()` to make the implicit
relationship explicit.

Alternative to, and based on the investigation in !117685.
2024-02-08 14:23:47 +01:00