when I move my mouse on the picture, the console puts the message "h" and "l" endless.
seems the event hover and leave happen at the same time.
is that a bug?
if not, how to change the code to avoid this?
require 'green_shoes'
Shoes.app :width => 360 do
flow do
@st=stack :width => 60, :margin_left => 100 do
@img = image 'ruby2.png'
end
end
@img.hover do |s|
puts 'h'
s.path = 'ruby3.png'
end
@img.leave do |s|
puts 'l'
s.path = 'ruby2.png'
end
end
when I move my mouse on the picture, the console puts the message "h" and "l" endless. seems the event hover and leave happen at the same time. is that a bug? if not, how to change the code to avoid this?