From a03a70124ddf450ac986eef3d4aeb50e103e0e19 Mon Sep 17 00:00:00 2001 From: "reed@android.com" Date: Sat, 29 Aug 2009 20:33:39 +0000 Subject: [PATCH] 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 --- src/utils/mac/SkOSWindow_Mac.cpp | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/utils/mac/SkOSWindow_Mac.cpp b/src/utils/mac/SkOSWindow_Mac.cpp index 40ed57cc88..98adbbebaa 100644 --- a/src/utils/mac/SkOSWindow_Mac.cpp +++ b/src/utils/mac/SkOSWindow_Mac.cpp @@ -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; }