forked from bartvdbraak/blender
Bug fix #33826
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:
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)
|
if (block->rect.xmin <= mx && block->rect.xmin + PNL_HEADER >= mx)
|
||||||
inside_header = 1;
|
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)) {
|
else if ((block->rect.ymax <= my) && (block->rect.ymax + PNL_HEADER >= my)) {
|
||||||
inside_header = 1;
|
inside_header = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user