Fix T94380: Scrolling zooms in spreadsheet data set region

The region used to be type "Channels", but the standard for this
type is "Tools", which is what the file browser uses. This follows
the changes in rB01df48a98394, which also make the region more
"standard."
This commit is contained in:
Hans Goudey 2021-12-28 11:05:31 -06:00
parent 0e38002dd5
commit 1a721c5dbe
Notes: blender-bot 2023-02-14 10:11:54 +01:00
Referenced by commit 1b9e103a30, Fix T94594: Incorrect spreadsheet data set region type in old files
Referenced by issue #94380, UI behavior Inconsistency: Mouse scroll changes scale of spreadsheet panel
1 changed files with 3 additions and 4 deletions

View File

@ -85,9 +85,8 @@ static SpaceLink *spreadsheet_create(const ScrArea *UNUSED(area), const Scene *U
/* Dataset Region */
ARegion *region = MEM_cnew<ARegion>("spreadsheet dataset region");
BLI_addtail(&spreadsheet_space->regionbase, region);
region->regiontype = RGN_TYPE_CHANNELS;
region->regiontype = RGN_TYPE_TOOLS;
region->alignment = RGN_ALIGN_LEFT;
region->v2d.scroll = (V2D_SCROLL_RIGHT | V2D_SCROLL_BOTTOM);
}
{
@ -688,9 +687,9 @@ void ED_spacetype_spreadsheet()
/* regions: channels */
art = MEM_cnew<ARegionType>("spreadsheet dataset region");
art->regionid = RGN_TYPE_CHANNELS;
art->regionid = RGN_TYPE_TOOLS;
art->prefsizex = 150 + V2D_SCROLL_WIDTH;
art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D;
art->keymapflag = ED_KEYMAP_UI;
art->init = ED_region_panels_init;
art->draw = spreadsheet_dataset_region_draw;
art->listener = spreadsheet_dataset_region_listener;