修复高dpi拖动屏幕时操作距离比例不正确

This commit is contained in:
MrZ626
2021-05-27 02:20:35 +08:00
parent a0a959e901
commit fecb292e9b
2 changed files with 3 additions and 3 deletions

View File

@@ -1124,7 +1124,7 @@ function WIDGET.drag(x,y,dx,dy)
if WIDGET.sel then
local W=WIDGET.sel
if W.type=='slider'or W.type=='textBox'then
W:drag(x,y+WIDGET.scrollPos,dx*SCR.dpi,dy*SCR.dpi)
W:drag(x,y+WIDGET.scrollPos,dx,dy)
elseif not W:isAbove(x,y)then
WIDGET.unFocus(true)
end