mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-18 07:21:09 +00:00
Avoid negative values for Timeline::m_separator_x (so the user can expand it again)
This commit is contained in:
parent
076be1f22f
commit
ca7f6a055f
@ -437,7 +437,7 @@ bool Timeline::onProcessMessage(Message* msg)
|
||||
// tracked to the mouse's released).
|
||||
if (m_clk_part == A_PART_SEPARATOR) {
|
||||
hot_part = m_clk_part;
|
||||
m_separator_x = mousePos.x;
|
||||
m_separator_x = MAX(0, mousePos.x);
|
||||
invalidate();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user