Post 2.65a issue

Now scrollbars appear/disappear correctly, a bug in checking if mouse clicks
where on panel headers popped up. That disabled using scrollers next to a
panel header.
This commit is contained in:
Ton Roosendaal 2013-01-11 15:19:47 +00:00
parent d1d3384750
commit 2f4cc3530d

@ -1157,6 +1157,8 @@ int ui_handler_panel_region(bContext *C, wmEvent *event)
if (block->rect.xmin <= mx && block->rect.xmin + PNL_HEADER >= mx)
inside_header = 1;
}
else if (block->rect.xmin > mx || block->rect.xmax < mx);
/* outside left/right side */
else if ((block->rect.ymax <= my) && (block->rect.ymax + PNL_HEADER >= my)) {
inside_header = 1;
}