summaryrefslogtreecommitdiff
path: root/dalos.lua
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-12-17 23:43:10 -0800
committerPixel <pixel@nobis-crew.org>2009-12-17 23:43:10 -0800
commited1edc28c6ff280976e3ca07ed1dae6c20b5001c (patch)
tree02642e80b6e28937dae6886e700e9932ce25bd49 /dalos.lua
parent45f3cba3b420ebc1b3ba793f3a609d8c5447a5ce (diff)
Fixing panning.
Diffstat (limited to 'dalos.lua')
-rw-r--r--dalos.lua12
1 files changed, 6 insertions, 6 deletions
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