3
0
mirror of https://github.com/britzl/monarch.git synced 2025-09-27 18:12:22 +02:00

Fix issue when a layout changes and there's an ongoing transition

This commit is contained in:
Björn Ritzl
2020-05-10 22:51:08 +02:00
parent 504ac9223a
commit 909ada9f18
3 changed files with 50 additions and 1 deletions

View File

@@ -174,6 +174,7 @@ local function create()
if t.in_progress_count == 0 then
table.insert(t.urls, msg.url())
current_transition = t
current_transition.id = transition_id
if #t.transitions > 0 then
for i=1,#t.transitions do
local transition = t.transitions[i]
@@ -206,7 +207,7 @@ local function create()
transition.fn(transition.node, transition.node_data, transition.easing, 0, 0)
end
if current_transition.in_progress_count > 0 then
finish_transition(message_id)
finish_transition(current_transition.id)
end
end
elseif message_id == monarch.TRANSITION.SHOW_IN