Fix incorrect pixelsize use where DPI scale was intended
Changing line-width shouldn't scale cursor motion. Related to T79787. Use dpi_fac for scaling curve error threshold & number button drag threshold calculation.
This commit is contained in:
@@ -4790,7 +4790,7 @@ static bool ui_numedit_but_NUM(uiBut *but,
|
||||
|
||||
if (is_float == false) {
|
||||
/* at minimum, moving cursor 2 pixels should change an int button. */
|
||||
CLAMP_MIN(non_linear_scale, 0.5f * U.pixelsize);
|
||||
CLAMP_MIN(non_linear_scale, 0.5f * UI_DPI_FAC);
|
||||
}
|
||||
|
||||
data->dragf += (((float)(mx - data->draglastx)) / deler) * non_linear_scale;
|
||||
|
||||
Reference in New Issue
Block a user