高dpi屏幕拖动文本框速度修正

This commit is contained in:
MrZ626
2021-02-09 15:31:31 +08:00
parent b85ac13c49
commit 5fea32203a

View File

@@ -839,7 +839,7 @@ function textBox:push(t)
end
end
function textBox:drag(_,_,_,dy)
_=self.scrollPix+dy
_=self.scrollPix+dy*SCR.dpi
local sign=_>0 and 1 or -1
while abs(_)>30 do
_=_-30*sign