Skip to content

Commit

Permalink
Use a better event type for chat tab touching
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Dec 4, 2018
1 parent e277fb9 commit 794c2ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Themes/_fallback/BGAnimations/ScreenChatOverlay overlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -355,16 +355,13 @@ end
function shiftTab(fromIndex, toIndex)
-- tabs[index of tab][parameter table....]
-- [1 is type, 2 is tab contents?]
-- type 0 cant be deleted
tabs[toIndex] = tabs[fromIndex]
tabs[fromIndex] = nil
end

function shiftAllTabs(emptyIndex)
for i = emptyIndex + 1, maxTabs - 1 do
--if not (tabs[i][1] == 0 and tabs[i][2] == "") then -- dont delete the lobby tab
shiftTab(i, i-1)
--end
end
end

Expand Down Expand Up @@ -412,7 +409,7 @@ function MPinput(event)
update = true
end
else
if event.type == "InputEventType_Release" then -- only change tabs on release (to stop repeatedly closing tabs or changing to a tab we close) -poco
if event.type == "InputEventType_FirstPress" then -- only change tabs on press (to stop repeatedly closing tabs or changing to a tab we close) -poco
if not closeTab then
changeTab(tabs[tabButton][2], tabs[tabButton][1])
else
Expand Down

0 comments on commit 794c2ba

Please sign in to comment.