diff options
author | Pixel <pixel@nobis-crew.org> | 2009-12-17 23:43:10 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-12-17 23:43:10 -0800 |
commit | ed1edc28c6ff280976e3ca07ed1dae6c20b5001c (patch) | |
tree | 02642e80b6e28937dae6886e700e9932ce25bd49 | |
parent | 45f3cba3b420ebc1b3ba793f3a609d8c5447a5ce (diff) |
Fixing panning.
-rw-r--r-- | dalos.lua | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |