Fix marker selection margin ignoring DPI
This commit is contained in:
parent
bd623d9da3
commit
0219cf468e
Notes:
blender-bot
2023-02-14 10:21:15 +01:00
Referenced by issue #41041, 'Delete keyframe' active in markers' area too
|
@ -1234,7 +1234,9 @@ static void ed_default_handlers(wmWindowManager *wm, ScrArea *sa, ListBase *hand
|
|||
/* time space only has this keymap, the others get a boundbox restricted map */
|
||||
if (sa->spacetype != SPACE_TIME) {
|
||||
ARegion *ar;
|
||||
static rcti rect = {0, 10000, 0, 30}; /* same local check for all areas */
|
||||
/* same local check for all areas */
|
||||
static rcti rect = {0, 10000, 0, -1};
|
||||
rect.ymax = (30 * UI_DPI_FAC);
|
||||
ar = BKE_area_find_region_type(sa, RGN_TYPE_WINDOW);
|
||||
if (ar) {
|
||||
WM_event_add_keymap_handler_bb(handlers, keymap, &rect, &ar->winrct);
|
||||
|
|
Loading…
Reference in New Issue