mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 07:22:12 -05:00
Fix #133193: VSE: Wrong mouse cursor over scroll bars
Add a check to see if the mouse is in the scroller region in `sequencer_main_cursor()`. Pull Request: https://projects.blender.org/blender/blender/pulls/133353
This commit is contained in:
parent
efe75841d3
commit
e3c0224d16
1 changed files with 6 additions and 1 deletions
|
@ -678,6 +678,12 @@ static void sequencer_main_cursor(wmWindow *win, ScrArea *area, ARegion *region)
|
|||
return;
|
||||
}
|
||||
|
||||
const View2D *v2d = ®ion->v2d;
|
||||
if (UI_view2d_mouse_in_scrollers(region, v2d, win->eventstate->xy)) {
|
||||
WM_cursor_set(win, wmcursor);
|
||||
return;
|
||||
}
|
||||
|
||||
float mouse_co_region[2] = {float(win->eventstate->xy[0] - region->winrct.xmin),
|
||||
float(win->eventstate->xy[1] - region->winrct.ymin)};
|
||||
float mouse_co_view[2];
|
||||
|
@ -705,7 +711,6 @@ static void sequencer_main_cursor(wmWindow *win, ScrArea *area, ARegion *region)
|
|||
return;
|
||||
}
|
||||
|
||||
const View2D *v2d = ®ion->v2d;
|
||||
const float scale_y = UI_view2d_scale_get_y(v2d);
|
||||
|
||||
if (!ED_sequencer_can_select_handle(scene, selection.seq1, v2d) || scale_y < 16 * U.pixelsize) {
|
||||
|
|
Loading…
Reference in a new issue