Fix #110853: Trackpad: support for 'ui_colorpicker_small_wheel_cb' #110928

Open
YimingWu wants to merge 4 commits from ChengduLittleA/blender:fix-110853 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 1 additions and 1 deletions
Showing only changes of commit f934470476 - Show all commits

View File

@ -6286,7 +6286,7 @@ static int ui_do_but_COLOR(bContext *C, uiBut *but, uiHandleButtonData *data, co
hsv[2] = clamp_f(hsv[2] + 0.05f, 0.0f, 1.0f);
}
else {
const float fac = 0.005 * WM_event_absolute_delta_y(event) / UI_SCALE_FAC;
const float fac = 0.005 * (event->xy[1] - event->prev_xy[1]);
hsv[2] = clamp_f(hsv[2] + fac, 0.0f, 1.0f);
}