Hi,
Think I found a bug with onclick events on shapes.
If i use the :center attribute on the shape only the lower right region of
the shape is clickable.
Shoes.app :width => 350, :height => 200 do
@square1 = rect 100, 100, 100, 100, :center => true
@square2 = rect 200, 50, 100, 100
#works as expected
@square1.click do
animate (24) do |i|
@square1.move(100, 100 + (Math.sin(i) * 6).to_i)
end
end
#does not work
@square2.click do
animate (24) do |i|
@square2.move(200, 50 + (Math.sin(i) * 6).to_i)
end
end
end
--
Zulfiqar Ali
CTO, TimeSvr
+65-81386962