Skip to content

Commit c4f7816

Browse files
author
Peter Kosyh
committed
better resize & scroll
1 parent 4048e3d commit c4f7816

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

data/core/iface.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ function iface.input_set(v)
215215
end
216216
function iface.input_visible()
217217
if not input_attached then return false end
218-
local y = input_attached.y - mwin.off + mwin.pad
219-
return y < mwin.pad + mwin.lay.h
218+
return input_attached.y - mwin.off + mwin.pad + input_attached.h <= mwin.pad + mwin.lay.h
220219
end
221220
function iface.mouse(e, v, a, b)
222221
if input_attached and e == 'mousedown' then

0 commit comments

Comments
 (0)