On Tue, Nov 18, 2008 at 8:55 PM, Seth Thomas Rasmussen
<[EMAIL PROTECTED]> wrote:
> On Tue, Nov 18, 2008 at 1:55 PM, Jonas Elfström <[EMAIL PROTECTED]> wrote:
>> image "card.jpg", :click => proc {
>>      if [EMAIL PROTECTED]
>>        @in_click_event=true
>>        card_click()
>>        @in_click_event=false
>>      end
>>    }, :width=>320, :height=>240
>>
>> If this doesn't stop card_click from being called twice in case of a
>> double click on the image then what does?
>
> What about setting a @clicked state or some such, forking your :click
> behavior accordingly, and resetting the state when appropriate?

That was what I was trying to do above. Where did I go wrong?

-- 
Jonas Elfström

Reply via email to