Skip to content
Snippets Groups Projects
Commit c5e66ffa authored by Alex Ksandra's avatar Alex Ksandra
Browse files

Stopped TalentTrees losing scrollbar position on focus out/focus in.

parent d1cf3524
No related branches found
No related tags found
1 merge request!150Quality fixes
......@@ -276,6 +276,9 @@ function _M:drawItem(item)
end
function _M:on_focus_change(status)
--remember scrollbar
local old_pos
if self.scrollbar then old_pos = self.scrollbar.pos end
self.last_input_was_keyboard = true
if status then
self.prev_item = nil
......@@ -300,6 +303,7 @@ function _M:on_focus_change(status)
end
end
end
if self.scrollbar then self.scrollbar.pos = old_pos end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment