UI: increase threshold for color-band select

Was quite small, especially with hi-dpi displays.
Increase to 50 since theres no benefit to not select when clicking.
This commit is contained in:
Campbell Barton 2015-09-11 05:57:55 +10:00
parent 0d568e4186
commit d1dcf91955
1 changed files with 3 additions and 1 deletions

View File

@ -5703,7 +5703,9 @@ static int ui_do_but_COLORBAND(bContext *C, uiBlock *block, uiBut *but, uiHandle
{
ColorBand *coba;
CBData *cbd;
int mx, my, a, xco, mindist = 12;
/* ignore zoom-level for mindist */
int mindist = (50 * UI_DPI_FAC) * block->aspect;
int mx, my, a, xco;
mx = event->x;
my = event->y;