Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Unified Diff: ui/events/cocoa/events_mac.mm

Issue 2448173002: Fix processing of mouse events on MacViews.
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/cocoa/events_mac.mm
diff --git a/ui/events/cocoa/events_mac.mm b/ui/events/cocoa/events_mac.mm
index 4a8347fd25f67bb93125ef6f5ff82f407334ee13..156fd00bcb196b753ff72bb7160320339d2f82fa 100644
--- a/ui/events/cocoa/events_mac.mm
+++ b/ui/events/cocoa/events_mac.mm
@@ -43,7 +43,7 @@ EventType EventTypeFromNative(const base::NativeEvent& native_event) {
case NSMouseMoved:
return ET_MOUSE_MOVED;
case NSScrollWheel:
- return ET_SCROLL;
+ return ET_MOUSEWHEEL;
Avi (use Gerrit) 2016/10/25 15:34:50 This was recently changed by Trent in r421082; why
snake 2016/10/25 15:46:18 views::Widget is not supported ET_SCROLL, only ET_
snake 2016/10/25 20:52:05 Reverted.
case NSMouseEntered:
return ET_MOUSE_ENTERED;
case NSMouseExited:
« no previous file with comments | « ui/base/cocoa/base_view.mm ('k') | ui/views/BUILD.gn » ('j') | ui/views/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698