Sha256: b92dc1e4cfc575c46064caca0a880d3645a958c910d4b6467382eeae217f5f7e

Contents?: true

Size: 930 Bytes

Versions: 7

Compression:

Stored size: 930 Bytes

Contents

# frozen_string_literal: true

separator=120
b=box({ left: separator, id: :test_box })
c=box({ left: b.left.value+separator })
d=box({ left: c.left.value+separator })
e=box({ left: d.left.value+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

7 entries across 7 versions & 1 rubygems

Version Path
atome-0.5.3.7.3 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.3.7.2 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.3.4 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.3.2 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.2.8 vendor/assets/src/medias/rubies/examples/touch.rb
atome-0.5.2.7 vendor/assets/build/medias/rubies/examples/touch.rb
atome-0.5.2.5 vendor/assets/build/medias/rubies/examples/touch.rb