diff --git a/data/core/view.lua b/data/core/view.lua index 805547c..36979cc 100644 --- a/data/core/view.lua +++ b/data/core/view.lua @@ -111,7 +111,9 @@ end function View:get_content_offset() - return self.position.x - self.scroll.x, self.position.y - self.scroll.y + local x = common.round(self.position.x - self.scroll.x) + local y = common.round(self.position.y - self.scroll.y) + return x, y end