Remove an unwanted truncation. (#7378)

This *should* be a float ;).

c.f., https://github.com/koreader/koreader/pull/7335#discussion_r586548610
This commit is contained in:
NiLuJe
2021-03-03 19:39:22 +01:00
committed by GitHub
parent 03885071b9
commit 9bcaae6eeb

View File

@@ -457,8 +457,8 @@ end
function MenuItem:getGesPosition(ges)
local dimen = self[1].dimen
return {
x = math.floor((ges.pos.x - dimen.x) / dimen.w),
y = math.floor((ges.pos.y - dimen.y) / dimen.h),
x = (ges.pos.x - dimen.x) / dimen.w,
y = (ges.pos.y - dimen.y) / dimen.h,
}
end