mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-27 06:35:16 +00:00
Timeline: fix separator's area and setCursor()
This commit is contained in:
parent
1644d466d1
commit
c4dd3f6f65
@ -1019,8 +1019,7 @@ void Timeline::setCursor(ui::Message* msg, const gfx::Point& mousePos)
|
|||||||
else if (m_hot_part == A_PART_RANGE_OUTLINE) {
|
else if (m_hot_part == A_PART_RANGE_OUTLINE) {
|
||||||
jmouse_set_cursor(kMoveCursor);
|
jmouse_set_cursor(kMoveCursor);
|
||||||
}
|
}
|
||||||
else if (mx > m_separator_x-2 && mx < m_separator_x+2) {
|
else if (m_hot_part == A_PART_SEPARATOR) {
|
||||||
// Is the mouse in the separator.
|
|
||||||
jmouse_set_cursor(kSizeWECursor);
|
jmouse_set_cursor(kSizeWECursor);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -1599,7 +1598,7 @@ void Timeline::updateHot(ui::Message* msg, const gfx::Point& mousePos, int& hot_
|
|||||||
}
|
}
|
||||||
// Is the mouse on the separator.
|
// Is the mouse on the separator.
|
||||||
else if (mousePos.x > m_separator_x-4
|
else if (mousePos.x > m_separator_x-4
|
||||||
&& mousePos.x < m_separator_x+4) {
|
&& mousePos.x <= m_separator_x) {
|
||||||
hot_part = A_PART_SEPARATOR;
|
hot_part = A_PART_SEPARATOR;
|
||||||
}
|
}
|
||||||
// Is the mouse on the headers?
|
// Is the mouse on the headers?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user