E_CONFIG_VAL(D, T, canvas_render_delay_after_boot, UCHAR);
E_CONFIG_VAL(D, T, commit_handler_timer.use, UCHAR);
E_CONFIG_VAL(D, T, commit_handler_timer.interval, DOUBLE);
+ E_CONFIG_VAL(D, T, e_wheel_click_angle, INT);
}
E_API E_Comp_Config *
cfg->canvas_render_delay_after_boot = 0;
+ cfg->e_wheel_click_angle = 1;
+
return cfg;
error:
Eina_Bool use; // 0: none 1: use commit_handler timer
double interval; // time value the interval of commit_handler after tdm_commit in second (default : 0)
} commit_handler_timer;
+
+ int e_wheel_click_angle;
};
struct _E_Comp_Match
Ecore_Event_Mouse_Wheel *ev;
int detent;
Eina_Bool res = ECORE_CALLBACK_PASS_ON;
+ E_Comp_Config *comp_conf;
EINA_SAFETY_ON_NULL_RETURN_VAL(event, res);
ev = (Ecore_Event_Mouse_Wheel *)event;
return ECORE_CALLBACK_PASS_ON;
detent = ev->z;
+ comp_conf = e_comp_config_get();
+ if (comp_conf && comp_conf->e_wheel_click_angle)
+ {
+ detent = (int)(detent / comp_conf->e_wheel_click_angle);
+ }
if (detent == 1 || detent == -1)
{
z = libinput_event_pointer_get_axis_value_discrete(event, axis);
}
+ comp_conf = e_comp_config_get();
+ if (comp_conf && comp_conf->e_wheel_click_angle)
+ {
+ z = (int)(z * comp_conf->e_wheel_click_angle);
+ }
+
if ((edev->seat->dev->blocked & E_INPUT_SEAT_POINTER) ||
(edev->seat->dev->server_blocked & E_INPUT_SEAT_POINTER))
{
ev->z = z;
ev->direction = direction;
- comp_conf = e_comp_config_get();
if (comp_conf && comp_conf->input_log_enable)
{
if (detent_data)