From 4312b47e83aaa7d54e67e53774ca85140c3a0931 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 24 Apr 2019 11:37:36 +1000 Subject: Fix T63822: Sidebar tabs active area dead-zone #2 Take the entire gutter used for panel tabs into account. Introduced in recent fix for T61554 --- source/blender/editors/include/ED_screen.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/include/ED_screen.h') diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h index 00771142553..543b2a5781f 100644 --- a/source/blender/editors/include/ED_screen.h +++ b/source/blender/editors/include/ED_screen.h @@ -413,6 +413,9 @@ bool ED_region_overlap_isect_xy_with_margin(const ARegion *ar, const int event_xy[2], const int margin); +bool ED_region_panel_category_gutter_calc_rect(const ARegion *ar, rcti *r_ar_gutter); +bool ED_region_panel_category_gutter_isect_xy(const ARegion *ar, const int event_xy[2]); + bool ED_region_contains_xy(const struct ARegion *ar, const int event_xy[2]); /* interface_region_hud.c */ -- cgit v1.2.3