mirror of
https://gitlab.com/luk3yx/minetest-flow.git
synced 2025-09-20 13:46:30 +02:00
Luacheck
This commit is contained in:
parent
1960dbd502
commit
24ca88e980
@ -36,7 +36,8 @@ local function handle_popovers(box, node)
|
||||
|
||||
if node.type == "scroll_container" then
|
||||
local ctx = flow.get_context()
|
||||
local offset = (ctx.form[node.scrollbar_name] or 0) * (node.scroll_factor or 0.1)
|
||||
local offset = (ctx.form[node.scrollbar_name] or 0) *
|
||||
(node.scroll_factor or 0.1)
|
||||
if node.orientation == "horizontal" then
|
||||
offset_x = offset_x - offset
|
||||
else
|
||||
@ -51,7 +52,9 @@ local function handle_popovers(box, node)
|
||||
box.on_close_popover = node.on_close_popover
|
||||
|
||||
expand(popover)
|
||||
popover = nil -- Reduce the impact of API misuse
|
||||
|
||||
-- Reduce the impact of API misuse
|
||||
node.popover = nil
|
||||
node.on_close_popover = nil
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user