clear new layers

This commit is contained in:
2017-04-15 21:52:18 +02:00
parent 163a435e6e
commit 357f37e3d0
4 changed files with 5 additions and 5 deletions

View File

@@ -641,7 +641,7 @@ bool App::mouse_scroll(float x, float y, float delta)
MouseEvent e;
e.m_type = kEventType::MouseScroll;
e.m_pos = { x / zoom, y / zoom };
e.m_scroll_delta = delta;
e.m_scroll_delta = delta * 0.1f;
auto ret = layout[main_id]->on_event(&e);
layout[main_id]->update();
return ret == kEventResult::Consumed;