Correct constraining rectangle for treeview drags so that pointer can't leave window.
This commit is contained in:
parent
f3f2c5b481
commit
bf3bea5874
|
@ -1008,8 +1008,7 @@ static void ro_treeview_drag_start(ro_treeview *tv, wimp_pointer *pointer,
|
|||
drag.bbox.x0 = state->visible.x0;
|
||||
drag.bbox.y0 = state->visible.y0;
|
||||
drag.bbox.x1 = state->visible.x1;
|
||||
drag.bbox.y1 = state->visible.y1 -
|
||||
ro_toolbar_height(tv->tb);
|
||||
drag.bbox.y1 = state->visible.y1 - ro_toolbar_height(tv->tb) - 2;
|
||||
|
||||
switch (tv->drag) {
|
||||
case TREE_SELECT_DRAG:
|
||||
|
|
Loading…
Reference in New Issue