Fix #110853: Trackpad: support for 'ui_colorpicker_small_wheel_cb' #110928
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue