From 43e9b8f8f760bed82a5d7c186ff28c4ae6fc5134 Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Sun, 2 Oct 2022 19:44:39 +0200 Subject: [PATCH] [ui] Elaborate more on drop events flags. --- ui.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui.lua b/ui.lua index 8255c67..09a9d37 100644 --- a/ui.lua +++ b/ui.lua @@ -165,10 +165,11 @@ local function globalactions(ui, snap) end local function eventpropagate(ui, snap) - -- 1. Pointer events + -- Ignore event flags, in case focused widget requires direct input local dropPointer = ui.focused and ui.focused.grabpointer local dropAction = ui.focused and ui.focused.grabkeyboard + -- 1. Pointer events if snap.pointer and not dropPointer then local root = ui[1] local x,y,w,h = root.x,root.y,root.w,root.h