Timeline: fix separator's area and setCursor()

This commit is contained in:
David Capello 2014-09-17 10:20:49 -03:00
parent 1644d466d1
commit c4dd3f6f65

View File

@ -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?