[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] RFC: Container fix
From: |
Thomas Fitzsimmons |
Subject: |
Re: [cp-patches] RFC: Container fix |
Date: |
Fri, 11 Nov 2005 11:14:44 -0500 |
On Fri, 2005-11-11 at 09:47 -0500, Lillian Angel wrote:
> I made this change because I found in some case events were not being
> dispatched properly.
>
> If in the MOUSE_CLICKED event we find that the candidate (for
> mouseEventTarget) and the pressedComponent are not equal, null is
> returned for the mouseEventTarget. In this case, I think that pressCount
> should be reset to 0, since MOUSE_PRESSED and MOUSE_RELEASED events are
> not going to be dispatched for this component. Also, pressedComponent
> will be reset to something else when MOUSE_PRESSED is dispatched the
> next time (and pressCount will be incremented appropriately).
>
> I don't want to commit this patch until it gets approved from someone (I
> may be overlooking something).
This looks fine to me.
Tom