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 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#include "BKE_context.h"
#include "WM_api.h"
#include "WM_types.hh"
#include "RNA_access.h"
@ -833,6 +834,9 @@ static int ui_colorpicker_small_wheel_cb(const bContext * /*C*/,
else if (event->type == WHEELDOWNMOUSE) {
add = -0.05f;
}
else if (event->type == MOUSEPAN) {
add = 0.005f * WM_event_absolute_delta_y(event) / UI_SCALE_FAC;
}
if (add != 0.0f) {
LISTBASE_FOREACH (uiBut *, but, &block->buttons) {