Fix copy+move cursor icon bug (fix #3887)

Add logic to show the correct curson icon when holding the
  copy key (alt) while hovering over a selected layer.
This commit is contained in:
Charles Bradley 2024-03-14 15:23:50 -06:00 committed by David Capello
parent 8709219d68
commit 571a3965e9

View File

@ -2093,7 +2093,10 @@ void Timeline::setCursor(ui::Message* msg, const Hit& hit)
ui::set_mouse_cursor(kSizeECursor);
}
else if (hit.part == PART_RANGE_OUTLINE) {
ui::set_mouse_cursor(kMoveCursor);
if (is_copy_key_pressed(msg))
ui::set_mouse_cursor(kArrowPlusCursor);
else
ui::set_mouse_cursor(kMoveCursor);
}
else if (hit.part == PART_SEPARATOR) {
ui::set_mouse_cursor(kSizeWECursor);