Small silly feature: menus in blender now scroll with mouse wheel. :)

Note that activiting it works as if you used arrow keys, not with mouse.
This commit is contained in:
Ton Roosendaal 2007-03-05 20:49:04 +00:00
parent bf5dfc651e
commit ee79b599ea

@ -4389,6 +4389,12 @@ static int ui_do_block(uiBlock *block, uiEvent *uevent)
}
}
/* inside menus, scrollwheel acts as arrow */
if(block->flag & UI_BLOCK_LOOP) {
if(uevent->event==WHEELUPMOUSE) uevent->event= UPARROWKEY;
if(uevent->event==WHEELDOWNMOUSE) uevent->event= DOWNARROWKEY;
}
switch(uevent->event) {
case LEFTARROWKEY: /* closing sublevels of pulldowns */
if(uevent->val && (block->flag & UI_BLOCK_LOOP) && block->parent) {