Remove an unwanted truncation. (#7378)

This *should* be a float ;).

c.f., https://github.com/koreader/koreader/pull/7335#discussion_r586548610
pull/7384/head
NiLuJe 3 years ago committed by GitHub
parent 03885071b9
commit 9bcaae6eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save