STR #1059: OSX: applications could not reset the click count, so a tripple

click with reset could be interpreted as a double click, then a tripple click,
  instead of double click, then a single click

M    Fl_mac.cxx


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher
2005-11-01 23:57:40 +00:00
parent e7ea8bbe97
commit 501e1b7416
+4 -1
View File
@@ -868,7 +868,10 @@ static pascal OSStatus carbonMouseHandler( EventHandlerCallRef nextHandler, Even
fl_os_capture = xid;
sendEvent = FL_PUSH;
Fl::e_is_click = 1; px = pos.h; py = pos.v;
Fl::e_clicks = clickCount-1;
if (clickCount>1)
Fl::e_clicks++;
else
Fl::e_clicks = 0;
// fall through
case kEventMouseUp:
if ( !window ) break;