mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user