Merge pull request #965 from diath/fix_tab_blink

Fix tab blink
This commit is contained in:
Konrad Kuśnierz 2019-01-16 13:32:39 +01:00 committed by GitHub
commit 7e31980ba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -385,6 +385,11 @@ function UIMoveableTabBar:selectTab(tab)
tab:setOn(false) tab:setOn(false)
tab.blinking = false tab.blinking = false
if tab.blinkEvent then
removeEvent(tab.blinkEvent)
tab.blinkEvent = nil
end
local parent = tab:getParent() local parent = tab:getParent()
parent:focusChild(tab, MouseFocusReason) parent:focusChild(tab, MouseFocusReason)
updateNavigation(self) updateNavigation(self)