From 35a5aeabb856ef5a4f62150d97924da29c54009d Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sun, 2 Jun 2024 14:46:28 +0200 Subject: [PATCH] Fix requests pagination onTouch, wrong itemAt usage --- requests.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests.lua b/requests.lua index 2122676..df1cbc7 100644 --- a/requests.lua +++ b/requests.lua @@ -94,7 +94,7 @@ end local function onTouch(self, touch_x, touch_y) local tw, th = self.window.getSize() if touch_x > tw-5 then - local obj = listview.itemAt(touch_y) + local obj = listview.itemAt(touch_y+self.scrollPos-1) if obj ~= nil and obj.answer ~= nil then if permset.has(allowed_items, obj.answer.name) then permset.remove(allowed_items, obj.answer.name)