修复有屏幕滚动的场景按住鼠标拖动时控件会失去焦点

This commit is contained in:
MrZ626
2021-07-21 15:03:31 +08:00
parent 0af4e2adb9
commit 7f1f9b0221

View File

@@ -1315,7 +1315,7 @@ function WIDGET.drag(x,y,dx,dy)
local W=WIDGET.sel
if W.drag then
W:drag(x,y+WIDGET.scrollPos,dx,dy)
elseif not W:isAbove(x,y)then
elseif not W:isAbove(x,y+WIDGET.scrollPos)then
WIDGET.unFocus(true)
end
else