Fix tabs without onTouch

This commit is contained in:
Ben 2024-06-02 21:26:33 +02:00
parent e799266475
commit 3bfe943328
Signed by: ben
GPG key ID: 0F54A7ED232D3319
2 changed files with 1 additions and 5 deletions

View file

@ -89,10 +89,6 @@ local function estimatedHeight()
return listframes.estimatedHeight()
end
local function onTouch(self, touch_x, touch_y)
return false
end
return {
name="orders",
@ -100,5 +96,4 @@ return {
fetch=fetch,
displayTab=displayTab,
estimatedHeight=estimatedHeight,
onTouch=onTouch,
}

View file

@ -84,6 +84,7 @@ end
local function onTouch(touchX, touchY)
if currentTab ~= nil and
currentTab.onTouch ~= nil and
winhlp.contains(currentTab.window, touchX, touchY) and
currentTab.onTouch(currentTab, winhlp.translate(currentTab.window, touchX, touchY)) then
return true