UI: fix Ctrl-Wheel to change button values
This commit is contained in:
@@ -4333,10 +4333,12 @@ static int ui_do_but_NUM(
|
||||
retval = WM_UI_HANDLER_BREAK; /* allow accumulating values, otherwise scrolling gets preference */
|
||||
else if (type == WHEELDOWNMOUSE && event->ctrl) {
|
||||
mx = but->rect.xmin;
|
||||
but->drawflag |= UI_BUT_ACTIVE_LEFT;
|
||||
click = 1;
|
||||
}
|
||||
else if (type == WHEELUPMOUSE && event->ctrl) {
|
||||
mx = but->rect.xmax;
|
||||
but->drawflag |= UI_BUT_ACTIVE_RIGHT;
|
||||
click = 1;
|
||||
}
|
||||
else if (event->val == KM_PRESS) {
|
||||
|
||||
Reference in New Issue
Block a user