Sha256: baa906ff6a5d4a2b414414d70b643481406ca6c1782294dce3abfbea70c19e22
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
# drop example b = box() b.x(250) b.drag(true) c = circle c.x(390) c.drop(true) do |evt, ui,current_obj | dropped_element= `$(#{ui}.draggable).attr('id')` puts evt if grab(dropped_element).color==:red grab(dropped_element).color(:orange) else grab(dropped_element).color(:red) end current_obj.color(:black) current_obj.y=c.y+33 end c.touch do c.drop(false) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
atome-0.4.7.0 | vendor/assets/build/medias/rubies/examples/Old_examples/drop.rb |
atome-0.4.5.4 | vendor/assets/build/medias/rubies/examples/Old_examples/drop.rb |