Sha256: 55ed4584d4063e15d64f91397d01bd9a472d4cc72360b1e21db3a5853e5c24c3

Contents?: true

Size: 912 Bytes

Versions: 11

Compression:

Stored size: 912 Bytes

Contents

# frozen_string_literal: true

separator=120
b=box({ left: separator, id: :test_box })
c=box({ left: b.left+separator })
d=box({ left: c.left+separator })
e=box({ left: d.left+separator })

b.touch(:down) do
  b.color(:red)
  c.color(:red)
  d.color(:red)
  e.color(:red)
end
b.text({data: :down})

c.touch(:long) do
  b.color(:blue)
  c.color(:blue)
  d.color(:blue)
  e.color(:blue)
end
c.text({data: :long})

d.touch(:up) do
  b.color(:yellow)
  c.color(:yellow)
  d.color(:yellow)
  e.color(:yellow)
end
d.text({data: :up})
e.touch(:double) do
  b.color(:black)
  c.color(:black)
  d.color(:black)
  e.color(:black)
end
e.text({data: :double})

ccc=circle
ccc.top(199)

# def unbind(val=nil)
#   id_found=self.atome[:id]
# `
# const el = document.getElementById(#{id_found});
# interact('#'+#{id_found}).unset(#{val});
# `
# end
b.touch(:long) do
  b.color(:cyan)
end

ccc.touch(true) do
  b.unbind(:tap)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
atome-0.5.4.1.9 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.4.1.7 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.4.1.3 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.4.1.2 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.4.1.1 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.4.1.0 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.4.0.9 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.3.8.8 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.3.8.1 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.3.8.0 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.3.7.8 vendor/assets/src/medias/rubies/examples/touch.rb