From ed1edc28c6ff280976e3ca07ed1dae6c20b5001c Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 17 Dec 2009 23:43:10 -0800 Subject: Fixing panning. --- dalos.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'dalos.lua') diff --git a/dalos.lua b/dalos.lua index 3400aaa..0747073 100644 --- a/dalos.lua +++ b/dalos.lua @@ -253,10 +253,10 @@ dalosp.canvas = { self.stateful.leftclk = obj table.remove(self.objects, ind) table.insert(self.objects, obj) - self.ox, self.oy = x, y - self.bx, self.by = x, y - self:draw() end + self.ox, self.oy = x, y + self.bx, self.by = x, y + self:draw() end else if not self.stateful.linking and self.stateful.leftclk and not self.stateful.dragging then @@ -294,10 +294,10 @@ dalosp.canvas = { self.stateful.rghtclk = obj table.remove(self.objects, ind) table.insert(self.objects, obj) - self.ox, self.oy = x, y - self.bx, self.by = x, y - self:draw() end + self.ox, self.oy = x, y + self.bx, self.by = x, y + self:draw() end else if not self.stateful.moving and self.stateful.rghtclk and not self.stateful.dragging then -- cgit v1.2.3