bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #17735] NSButton sends the action even if mouseUp is outside its fr


From: Fred Kiefer
Subject: [bug #17735] NSButton sends the action even if mouseUp is outside its frame.
Date: Sun, 17 Sep 2006 21:46:46 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.1 (like Gecko)

Update of bug #17735 (project gnustep):

             Assigned to:                    None => FredKiefer             

    _______________________________________________________

Follow-up Comment #1:

Could we try to reach a common understanding of this problem first and of how
this situation gets handled by OpenStep/Cocoa?

I think that mouse events should mostly be handled by the cell in which they
ocure. The control (in this case the button) itself should not do too much by
itself. 

When the mouse goes up inside the cell the tracking code of the button should
deal with that event by sending the corresponding action.

When the mouse goes up within the control but not within the active cell we
could either ignore this (what I would prefer) or have the control deal with
that.

And finally when the mouse goes up outside the control we should not send any
action.

The current code does not check, if the mouse up event happend within the
frame bounds. With my proposed new code for mouseDown handling in place the
new behaviour would just mean to remove a few more lines of code, which
always is great.
But I am feeling a bit reluctant to implement this change in the old version
of the code, with which I am not feeling very comfortable.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?17735>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]