mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-02 13:20:12 +00:00
Do not reset scroll each time we click a sprite
This commit is contained in:
parent
560270dbef
commit
afc83ec09a
@ -135,6 +135,10 @@ Timeline::Timeline()
|
|||||||
, m_context(UIContext::instance())
|
, m_context(UIContext::instance())
|
||||||
, m_editor(NULL)
|
, m_editor(NULL)
|
||||||
, m_document(NULL)
|
, m_document(NULL)
|
||||||
|
, m_scroll_x(0)
|
||||||
|
, m_scroll_y(0)
|
||||||
|
, m_separator_x(100 * jguiscale())
|
||||||
|
, m_separator_w(1)
|
||||||
{
|
{
|
||||||
m_context->addObserver(this);
|
m_context->addObserver(this);
|
||||||
|
|
||||||
@ -178,10 +182,6 @@ void Timeline::updateUsingEditor(Editor* editor)
|
|||||||
m_layer = location.layer();
|
m_layer = location.layer();
|
||||||
m_frame = location.frame();
|
m_frame = location.frame();
|
||||||
m_state = STATE_STANDBY;
|
m_state = STATE_STANDBY;
|
||||||
m_scroll_x = 0;
|
|
||||||
m_scroll_y = 0;
|
|
||||||
m_separator_x = 100 * jguiscale();
|
|
||||||
m_separator_w = 1;
|
|
||||||
m_hot_part = A_PART_NOTHING;
|
m_hot_part = A_PART_NOTHING;
|
||||||
m_clk_part = A_PART_NOTHING;
|
m_clk_part = A_PART_NOTHING;
|
||||||
m_space_pressed = false;
|
m_space_pressed = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user