Sha256: 9ba346f0c0e53a420d0c3f005c530270bb613f3eebbb4d6f741be56c1f927c67

Contents?: true

Size: 726 Bytes

Versions: 45

Compression:

Stored size: 726 Bytes

Contents

#  frozen_string_literal: true

b = box({ left: 666, color: :blue, smooth: 6, id: :the_box2 })

t=text({id: :the_text, data: 'type of touch : ?'})

t.touch(:down) do
  b.touch({remove: :down})
   # b.touch(:remove) # or  b.touch(false) to remove all touches bindings
  t.data('touch down killed')
end
b.touch(true) do
  # t.data('type of touch : ?')
  b.color(:red)
  puts 'box tapped'
end

b.touch(:long) do
  t.data('type of touch is : long ')
  b.color(:black)
end

b.touch(:up) do

  t.data('type of touch is : up ')
  b.color(:orange)
end

b.touch(:down) do
  t.data('type of touch is : down ')
  b.color(:white)
end

b.touch(:double) do
  t.color(:red)
  t.data('type of touch is : double ')
  b.color(:yellowgreen)
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
atome-0.5.6.6.1 vendor/assets/application/examples/touch.rb
atome-0.5.6.6.0 vendor/assets/application/examples/touch.rb
atome-0.5.6.5.7 vendor/assets/application/examples/touch.rb
atome-0.5.6.5.6 vendor/assets/application/examples/touch.rb
atome-0.5.6.5.4 vendor/assets/application/examples/touch.rb
atome-0.5.6.5.1 vendor/assets/application/examples/touch.rb
atome-0.5.6.4.8 vendor/assets/application/examples/touch.rb
atome-0.5.6.4.5 vendor/assets/application/examples/touch.rb
atome-0.5.6.4.2 vendor/assets/application/examples/touch.rb
atome-0.5.6.4.1 vendor/assets/application/examples/touch.rb
atome-0.5.6.4.0 vendor/assets/application/examples/touch.rb
atome-0.5.6.3.9 vendor/assets/application/examples/touch.rb
atome-0.5.6.3.6 vendor/assets/application/examples/touch.rb
atome-0.5.6.3.5 vendor/assets/application/examples/touch.rb
atome-0.5.6.3.1 vendor/assets/application/examples/touch.rb
atome-0.5.6.3.0 vendor/assets/application/examples/touch.rb
atome-0.5.6.2.9 vendor/assets/application/examples/touch.rb
atome-0.5.6.2.7 vendor/assets/application/examples/touch.rb
atome-0.5.6.2.5 vendor/assets/application/examples/touch.rb
atome-0.5.6.2.4 vendor/assets/application/examples/touch.rb