In what format is 'button' stored?
if button == 1
doesn't work for testing left mouse button click.
In what format is 'button' stored?
if button == 1
doesn't work for testing left mouse button click.
Inside your handler try calling debug(button)
But click do |button, left, top| ... end seems to be giving me 1 = left mouse button, 2 = middle mouse, 3 = right mouse button, so maybe you're doing something else wrong ;)