return noErr in clickhandler, so we can get mousemoved events
git-svn-id: http://skia.googlecode.com/svn/trunk@342 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
a964028843
commit
a03a70124d
@ -327,17 +327,20 @@ pascal OSStatus SkOSWindow::EventHandler( EventHandlerCallRef inHandler, EventRe
|
||||
GlobalToLocal(&pt);
|
||||
|
||||
switch (wKind) {
|
||||
case kEventMouseDown:
|
||||
(void)win->handleClick(pt.h, pt.v, Click::kDown_State);
|
||||
break;
|
||||
case kEventMouseDragged:
|
||||
(void)win->handleClick(pt.h, pt.v, Click::kMoved_State);
|
||||
break;
|
||||
case kEventMouseUp:
|
||||
(void)win->handleClick(pt.h, pt.v, Click::kUp_State);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
case kEventMouseDown:
|
||||
(void)win->handleClick(pt.h, pt.v, Click::kDown_State);
|
||||
result = noErr;
|
||||
break;
|
||||
case kEventMouseDragged:
|
||||
(void)win->handleClick(pt.h, pt.v, Click::kMoved_State);
|
||||
result = noErr;
|
||||
break;
|
||||
case kEventMouseUp:
|
||||
(void)win->handleClick(pt.h, pt.v, Click::kUp_State);
|
||||
result = noErr;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user