mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 22:36:19 +08:00
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:
+4
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user