Fix #28937: Text Editor Selection (Scroll Bar)
Do not start selection if mouse cursor.x >= scrollbar.x
This commit is contained in:
@@ -2583,6 +2583,9 @@ static int set_selection_invoke(bContext *C, wmOperator *op, wmEvent *event)
|
||||
SpaceText *st= CTX_wm_space_text(C);
|
||||
SetSelection *ssel;
|
||||
|
||||
if(event->mval[0]>=st->txtbar.xmin)
|
||||
return OPERATOR_PASS_THROUGH;
|
||||
|
||||
op->customdata= MEM_callocN(sizeof(SetSelection), "SetCursor");
|
||||
ssel= op->customdata;
|
||||
ssel->selecting= RNA_boolean_get(op->ptr, "select");
|
||||
|
||||
Reference in New Issue
Block a user