vendor/assets/application/examples/drag.rb in atome-0.5.7.3.6 vs vendor/assets/application/examples/drag.rb in atome-0.5.7.3.9
- old
+ new
@@ -5,10 +5,10 @@
cc=circle({color: :red, left: 0, top: 0})
clone = ""
b.drag(:start) do
b.color(:black)
b.height(123)
- # beware you must use grab(:view) else it'll be attached to the context, that means to 'b' in this case
+ # beware you must use grab(:view) else it'll be fasten to the context, that means to 'b' in this case
clone = grab(:view).circle({ color: :white, left: b.left, top: b.top, depth: 3 })
end
b.drag(:stop) do
b.color(:purple)