diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-08-29 20:33:39 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-08-29 20:33:39 +0000 |
commit | a03a70124ddf450ac986eef3d4aeb50e103e0e19 (patch) | |
tree | 5c2bfc75c74c9334dcbe04cf51d7d9b6a31b7bd2 /src/utils | |
parent | a964028843ec3f69b3b2e556426ff881d1fcb4b2 (diff) |
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
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/mac/SkOSWindow_Mac.cpp | 25 |
1 files 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; } |